forked from enlightenment/enlightenment
fix some comp leaks when window attributes are not found
SVN revision: 80846
This commit is contained in:
parent
fdcdd7a168
commit
ef6267c7c3
|
@ -1959,6 +1959,9 @@ _e_mod_comp_win_add(E_Comp *c,
|
||||||
memset((&att), 0, sizeof(Ecore_X_Window_Attributes));
|
memset((&att), 0, sizeof(Ecore_X_Window_Attributes));
|
||||||
if (!ecore_x_window_attributes_get(cw->win, &att))
|
if (!ecore_x_window_attributes_get(cw->win, &att))
|
||||||
{
|
{
|
||||||
|
free(cw->name);
|
||||||
|
free(cw->clas);
|
||||||
|
free(cw->role);
|
||||||
free(cw);
|
free(cw);
|
||||||
if (_comp_mod->conf->grab) ecore_x_ungrab();
|
if (_comp_mod->conf->grab) ecore_x_ungrab();
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in New Issue