mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-13 14:44:43 -04:00
Try to solve potential memory leaks
This commit is contained in:
parent
a7773be949
commit
858b30c20c
1 changed files with 2 additions and 0 deletions
|
@ -330,6 +330,8 @@ var disconnectSocketQueue = [];
|
||||||
|
|
||||||
function finishConnection(socket, note, user) {
|
function finishConnection(socket, note, user) {
|
||||||
if (!socket || !note || !user) {
|
if (!socket || !note || !user) {
|
||||||
|
if (note) delete note;
|
||||||
|
if (user) delete user;
|
||||||
connectionSocketQueue.pop();
|
connectionSocketQueue.pop();
|
||||||
isConnectionBusy = false;
|
isConnectionBusy = false;
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue