mirror of
https://github.com/weechat/weechat.git
synced 2026-07-04 08:43:13 +02:00
core: remove check of NULL pointers before calling gui_bar_window_free() (issue #865)
This commit is contained in:
+1
-2
@@ -842,8 +842,7 @@ gui_bar_config_change_hidden (const void *pointer, void *data,
|
||||
{
|
||||
if (CONFIG_BOOLEAN(ptr_bar->options[GUI_BAR_OPTION_HIDDEN]))
|
||||
{
|
||||
if (ptr_bar->bar_window)
|
||||
gui_bar_window_free (ptr_bar->bar_window, NULL);
|
||||
gui_bar_window_free (ptr_bar->bar_window, NULL);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user