raster pushed a commit to branch master.

http://git.enlightenment.org/apps/rage.git/commit/?id=ca14bfa26485681be797a1e86fdee20fe48017c6

commit ca14bfa26485681be797a1e86fdee20fe48017c6
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Sun Apr 26 12:23:56 2015 +0900

    fix minor leak in rage on failed win creation
    
    fixes CID 61903
---
 src/bin/win.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/bin/win.c b/src/bin/win.c
index 733a1d5..83dd798 100644
--- a/src/bin/win.c
+++ b/src/bin/win.c
@@ -332,7 +332,11 @@ win_add(void)
    if (!inf) return NULL;
 
    win = elm_win_add(NULL, "Rage", ELM_WIN_BASIC);
-   if (!win) return NULL;
+   if (!win)
+     {
+        free(inf);
+        return NULL;
+     }
 
    elm_win_title_set(win, "Rage");
    elm_win_autodel_set(win, EINA_TRUE);

-- 


Reply via email to