diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2024-04-25 19:34:32 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2024-04-26 21:17:13 +0200 |
commit | 890caf4e8e44971ae94bea72193560b8ae56aceb (patch) | |
tree | c98b5ac9c16893a6d70555b7b3c78a71e12717b7 /tests/unit | |
parent | ad33036fead1b0ca765494b521a5fb7c384b0be6 (diff) | |
download | weechat-890caf4e8e44971ae94bea72193560b8ae56aceb.zip |
core: remove check of NULL pointers before calling gui_bar_item_free() (issue #865)
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/gui/test-gui-bar-item.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/unit/gui/test-gui-bar-item.cpp b/tests/unit/gui/test-gui-bar-item.cpp index 557026e86..3b350398a 100644 --- a/tests/unit/gui/test-gui-bar-item.cpp +++ b/tests/unit/gui/test-gui-bar-item.cpp @@ -188,7 +188,8 @@ TEST(GuiBarItem, Update) TEST(GuiBarItem, Free) { - /* TODO: write tests */ + /* test free of NULL bar item */ + gui_bar_item_free (NULL); } /* |