1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-01 07:16:37 +02:00

core: fix memory leak in case of error when building content of bar item for display

This commit is contained in:
Sebastien Helleu
2012-12-25 16:57:14 +01:00
parent 67a111f7f2
commit 9a024f3aba
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -7,6 +7,8 @@ v0.4.0-dev, 2012-12-25
Version 0.4.0 (under dev!)
--------------------------
* core: fix memory leak in case of error when building content of bar item for
display
* core: fix detection of command in input: a single command char is considered
as a command (API function "string_input_for_bufer")
* core: search for a fallback template when a no template is matching command
+1
View File
@@ -852,6 +852,7 @@ gui_bar_window_content_get_with_filling (struct t_gui_bar_window *bar_window,
{
if (content)
free (content);
free (split_items);
return NULL;
}
content = content2;