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:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user