diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2024-04-25 19:47:09 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2024-04-26 21:18:24 +0200 |
commit | 2c300424b474cd4e428388cc30ca40638104ff5b (patch) | |
tree | f7f5a3c96b55c83a544e935f124963cd5dc652d6 /src/gui | |
parent | 3e520cb1ff3e4b0d2abaf9b034eca8bd2fb1063d (diff) | |
download | weechat-2c300424b474cd4e428388cc30ca40638104ff5b.zip |
core: remove check of NULL pointers before calling gui_color_palette_free() (issue #865)
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/gui-color.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gui/gui-color.c b/src/gui/gui-color.c index 3230d6cd6..b2721c552 100644 --- a/src/gui/gui-color.c +++ b/src/gui/gui-color.c @@ -1884,9 +1884,7 @@ gui_color_palette_free_value_cb (struct t_hashtable *hashtable, (void) key; color_palette = (struct t_gui_color_palette *)value; - - if (color_palette) - gui_color_palette_free (color_palette); + gui_color_palette_free (color_palette); } /* |