fix removeeventlistener and copyright dates

This commit is contained in:
ading2210 2024-10-29 23:51:59 -04:00
parent 59de256621
commit 04aa226b2d
3 changed files with 3 additions and 3 deletions

View file

@ -311,7 +311,7 @@ This project is licensed under the GNU AGPL v3.
### Copyright Notice: ### Copyright Notice:
``` ```
ading2210/libcurl.js - A port of libcurl to WASM for use in the browser. ading2210/libcurl.js - A port of libcurl to WASM for use in the browser.
Copyright (C) 2023 ading2210 Copyright (C) 2024 ading2210
This program is free software: you can redistribute it and/or modify This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by it under the terms of the GNU Affero General Public License as published by

View file

@ -1,6 +1,6 @@
/* /*
ading2210/libcurl.js - A port of libcurl to WASM for the browser. ading2210/libcurl.js - A port of libcurl to WASM for the browser.
Copyright (C) 2023 ading2210 Copyright (C) 2024 ading2210
This program is free software: you can redistribute it and/or modify This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by it under the terms of the GNU Affero General Public License as published by

View file

@ -123,7 +123,7 @@ class CurlSession {
} }
_session_cleanup(this.session_ptr); _session_cleanup(this.session_ptr);
this.session_ptr = null; this.session_ptr = null;
ws_events.removeEventListener(this.ws_event_listener); ws_events.removeEventListener("message", this.ws_event_listener);
Module.removeFunction(this.end_callback_ptr); Module.removeFunction(this.end_callback_ptr);
Module.removeFunction(this.headers_callback_ptr); Module.removeFunction(this.headers_callback_ptr);
Module.removeFunction(this.data_callback_ptr); Module.removeFunction(this.data_callback_ptr);