diff options
Diffstat (limited to 'src/plugins/buflist/buflist-bar-item.c')
-rw-r--r-- | src/plugins/buflist/buflist-bar-item.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/plugins/buflist/buflist-bar-item.c b/src/plugins/buflist/buflist-bar-item.c index b66fba4be..ac3fbe062 100644 --- a/src/plugins/buflist/buflist-bar-item.c +++ b/src/plugins/buflist/buflist-bar-item.c @@ -599,8 +599,7 @@ buflist_bar_item_buflist_cb (const void *pointer, void *data, weechat_hashtable_set (buflist_hashtable_extra_vars, "hotlist", (str_hotlist) ? str_hotlist : ""); - if (str_hotlist) - free (str_hotlist); + free (str_hotlist); /* lag */ ptr_lag = weechat_buffer_get_string (ptr_buffer, "localvar_lag"); @@ -632,8 +631,7 @@ buflist_bar_item_buflist_cb (const void *pointer, void *data, buflist_hashtable_extra_vars, buflist_hashtable_options_conditions); rc = (condition && (strcmp (condition, "1") == 0)); - if (condition) - free (condition); + free (condition); if (!rc) continue; |