fix some comp leaks when window attributes are not found

SVN revision: 80846
This commit is contained in:
Mike Blumenkrantz 2012-12-13 13:21:43 +00:00
parent fdcdd7a168
commit ef6267c7c3
1 changed files with 3 additions and 0 deletions

View File

@ -1959,6 +1959,9 @@ _e_mod_comp_win_add(E_Comp *c,
memset((&att), 0, sizeof(Ecore_X_Window_Attributes));
if (!ecore_x_window_attributes_get(cw->win, &att))
{
free(cw->name);
free(cw->clas);
free(cw->role);
free(cw);
if (_comp_mod->conf->grab) ecore_x_ungrab();
return NULL;