From 8dfb0c541e080d2df8b15a93e01cf5848563d1a0 Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Fri, 17 Jun 2016 17:00:02 +0900 Subject: [PATCH] Fix memory leak issues Change-Id: I5e46f797e1ef393098611f0674e0677467141e49 Signed-off-by: Jihoon Kim --- ism/extras/efl_panel/isf_panel_efl.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ism/extras/efl_panel/isf_panel_efl.cpp b/ism/extras/efl_panel/isf_panel_efl.cpp index 7926e7d..5376e42 100644 --- a/ism/extras/efl_panel/isf_panel_efl.cpp +++ b/ism/extras/efl_panel/isf_panel_efl.cpp @@ -3761,13 +3761,13 @@ static Ecore_X_Window efl_get_window (const char *name) if ((type_return == XA_WINDOW) && (format_return == 32) && (data)) { window = *(Window *)data; } - - if (data) - XFree (data); } else { std::cerr << "XGetWindowProperty () is failed!!!\n"; } + if (data) + XFree (data); + return window; } -- 2.7.4