fix minor leak in rage on failed win creation

fixes CID 61903
This commit is contained in:
Carsten Haitzler 2015-04-26 12:23:56 +09:00
parent 027be78ac7
commit ca14bfa264
1 changed files with 5 additions and 1 deletions

View File

@ -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);