mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Fix memory leak
This commit is contained in:
parent
ec215a1962
commit
995a2fad8c
@ -98,6 +98,11 @@ void liveupdate_unregister(buf_T *buf, uint64_t channelid)
|
|||||||
|
|
||||||
// make a new copy of the active array without the channelid in it
|
// make a new copy of the active array without the channelid in it
|
||||||
liveupdate_send_end(buf, channelid);
|
liveupdate_send_end(buf, channelid);
|
||||||
|
|
||||||
|
if (found == size) {
|
||||||
|
kv_destroy(buf->liveupdate_channels);
|
||||||
|
kv_init(buf->liveupdate_channels);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user