forked from enlightenment/efl
ecore_x: Remove NULL check
to get here, old_data != NULL. Fixes CID 1039648 and 1039649
This commit is contained in:
parent
1905fd4858
commit
c8b8738612
|
@ -1035,8 +1035,7 @@ ecore_x_icccm_colormap_window_set(Ecore_X_Window win,
|
|||
{
|
||||
if (oldset[i] == subwin)
|
||||
{
|
||||
if (old_data)
|
||||
free(old_data);
|
||||
free(old_data);
|
||||
|
||||
old_data = NULL;
|
||||
free(newset);
|
||||
|
@ -1094,8 +1093,7 @@ ecore_x_icccm_colormap_window_unset(Ecore_X_Window win,
|
|||
XDeleteProperty(_ecore_x_disp,
|
||||
win, ECORE_X_ATOM_WM_COLORMAP_WINDOWS);
|
||||
if (_ecore_xlib_sync) ecore_x_sync();
|
||||
if (old_data)
|
||||
free(old_data);
|
||||
free(old_data);
|
||||
|
||||
old_data = NULL;
|
||||
return;
|
||||
|
@ -1115,8 +1113,7 @@ ecore_x_icccm_colormap_window_unset(Ecore_X_Window win,
|
|||
32,
|
||||
data,
|
||||
k);
|
||||
if (old_data)
|
||||
free(old_data);
|
||||
free(old_data);
|
||||
|
||||
old_data = NULL;
|
||||
free(newset);
|
||||
|
|
Loading…
Reference in New Issue