1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-25 04:16:38 +02:00

core: remove check of NULL pointers before calling gui_completion_free() (issue #865)

This commit is contained in:
Sébastien Helleu
2024-04-25 19:44:15 +02:00
parent 114084a4fc
commit 3e520cb1ff
+1 -2
View File
@@ -3703,8 +3703,7 @@ gui_buffer_close (struct t_gui_buffer *buffer)
/* free some data */
gui_buffer_undo_free_all (buffer);
gui_history_buffer_free (buffer);
if (buffer->completion)
gui_completion_free (buffer->completion);
gui_completion_free (buffer->completion);
gui_nicklist_remove_all (buffer);
gui_nicklist_remove_group (buffer, buffer->nicklist_root);
hashtable_free (buffer->hotlist_max_level_nicks);