summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2024-04-25 19:44:15 +0200
committerSébastien Helleu <flashcode@flashtux.org>2024-04-26 21:18:24 +0200
commit3e520cb1ff3e4b0d2abaf9b034eca8bd2fb1063d (patch)
tree19e9eeb2da26221406de8f04f1f2b129d9fa693d /src/gui
parent114084a4fc232b18dc07e332a355485b671cdbf8 (diff)
downloadweechat-3e520cb1ff3e4b0d2abaf9b034eca8bd2fb1063d.zip
core: remove check of NULL pointers before calling gui_completion_free() (issue #865)
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/gui-buffer.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/gui-buffer.c b/src/gui/gui-buffer.c
index 439de44db..6e992a037 100644
--- a/src/gui/gui-buffer.c
+++ b/src/gui/gui-buffer.c
@@ -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);