diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2024-04-25 19:36:50 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2024-04-26 21:18:24 +0200 |
commit | a7b21fa64734c847d5ab628a2f6e2e609b8eb298 (patch) | |
tree | 14fce4b8ae604a9623a0309f09fd9145740724e6 /tests | |
parent | 890caf4e8e44971ae94bea72193560b8ae56aceb (diff) | |
download | weechat-a7b21fa64734c847d5ab628a2f6e2e609b8eb298.zip |
core: remove check of NULL pointers before calling gui_bar_window_free() (issue #865)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/gui/test-gui-bar-window.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/unit/gui/test-gui-bar-window.cpp b/tests/unit/gui/test-gui-bar-window.cpp index 075f8eff1..568bf5d4c 100644 --- a/tests/unit/gui/test-gui-bar-window.cpp +++ b/tests/unit/gui/test-gui-bar-window.cpp @@ -382,7 +382,9 @@ TEST(GuiBarWindow, SetCurrentSize) TEST(GuiBarWindow, Free) { - /* TODO: write tests */ + /* test free of NULL bar window */ + gui_bar_window_free (NULL, gui_current_window); + gui_bar_window_free (NULL, NULL); } /* |