ecore_x: fix memory leak

fix memory leak in xcb event handler.
   @fix
This commit is contained in:
Ji-Youn Park 2015-12-24 13:11:45 +08:30
parent 861165c49d
commit d0d9747853
2 changed files with 3 additions and 0 deletions

View File

@ -259,6 +259,8 @@ ecore_x_e_window_profile_get(Ecore_X_Window win)
if (atom)
profile = ecore_x_atom_name_get(atom[0]);
if (data) free(data);
return profile;
}

View File

@ -1491,6 +1491,7 @@ _ecore_xcb_event_handle_client_message(xcb_generic_event_t *event)
e->types[i] = ecore_x_atom_name_get(types[i]);
}
e->num_types = num_ret;
if (data) free(data);
}
else
{