summaryrefslogtreecommitdiff
path: root/src/gui/curses
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2024-04-25 19:05:34 +0200
committerSébastien Helleu <flashcode@flashtux.org>2024-04-26 08:53:22 +0200
commitf11c7c1bf46d494a5a0df616ed0dcc11c64505e1 (patch)
tree072da21e69168e3f90605f4ba009e7f665189b35 /src/gui/curses
parent0b2d9bcb9b04b7e7ac3c2f626422392383575d2b (diff)
downloadweechat-f11c7c1bf46d494a5a0df616ed0dcc11c64505e1.zip
core: remove check of NULL pointers before calling hashtable_free() (issue #865)
Diffstat (limited to 'src/gui/curses')
-rw-r--r--src/gui/curses/gui-curses-color.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/curses/gui-curses-color.c b/src/gui/curses/gui-curses-color.c
index 7a8b0ebc9..1d1a857f1 100644
--- a/src/gui/curses/gui-curses-color.c
+++ b/src/gui/curses/gui-curses-color.c
@@ -1335,8 +1335,7 @@ gui_color_buffer_open ()
if (gui_color_buffer && !gui_color_buffer->short_name)
gui_color_buffer->short_name = strdup (GUI_COLOR_BUFFER_NAME);
- if (properties)
- hashtable_free (properties);
+ hashtable_free (properties);
}
if (!gui_color_buffer)