forked from enlightenment/rage
fix minor leak in rage on failed win creation
fixes CID 61903
This commit is contained in:
parent
027be78ac7
commit
ca14bfa264
|
@ -332,7 +332,11 @@ win_add(void)
|
||||||
if (!inf) return NULL;
|
if (!inf) return NULL;
|
||||||
|
|
||||||
win = elm_win_add(NULL, "Rage", ELM_WIN_BASIC);
|
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_title_set(win, "Rage");
|
||||||
elm_win_autodel_set(win, EINA_TRUE);
|
elm_win_autodel_set(win, EINA_TRUE);
|
||||||
|
|
Loading…
Reference in New Issue