mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 13:38:34 +00:00
Fix memory leak
This commit is contained in:
@@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user