From f57257b3ecb2eebd57b83827cf74cbb8e4b4d0d6 Mon Sep 17 00:00:00 2001 From: Stefan Schmidt Date: Wed, 23 Jan 2013 09:51:53 +0000 Subject: [PATCH] efl/ecore(xcb: Port leak fix from xlib to xcb backend SVN revision: 83136 --- src/lib/ecore_x/xcb/ecore_xcb_e.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib/ecore_x/xcb/ecore_xcb_e.c b/src/lib/ecore_x/xcb/ecore_xcb_e.c index 9862a9d..c23030e 100644 --- a/src/lib/ecore_x/xcb/ecore_xcb_e.c +++ b/src/lib/ecore_x/xcb/ecore_xcb_e.c @@ -247,7 +247,11 @@ ecore_x_e_window_profile_get(Ecore_X_Window win) CHECK_XCB_CONN; if (!ecore_x_window_prop_property_get(win, ECORE_X_ATOM_E_WINDOW_PROFILE, ECORE_X_ATOM_ATOM, 32, &data, &num)) - return NULL; + { + if (data) + free(data); + return NULL; + } if (data) atom = (Ecore_X_Atom *)data; -- 2.7.4