From 9a024f3abadd4b5aacb4793d5edca7827661d468 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Tue, 25 Dec 2012 16:57:14 +0100 Subject: [PATCH] core: fix memory leak in case of error when building content of bar item for display --- ChangeLog | 2 ++ src/gui/gui-bar-window.c | 1 + 2 files changed, 3 insertions(+) diff --git a/ChangeLog b/ChangeLog index 36835355b..478e222fc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 diff --git a/src/gui/gui-bar-window.c b/src/gui/gui-bar-window.c index eecb34b34..1be0c8eda 100644 --- a/src/gui/gui-bar-window.c +++ b/src/gui/gui-bar-window.c @@ -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;