fix minor leak in rage on failed win creation

fixes CID 61903
v-0.4.0
Carsten Haitzler 8 years ago
parent 027be78ac7
commit ca14bfa264
  1. 6
      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);

Loading…
Cancel
Save