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,7 +1035,6 @@ ecore_x_icccm_colormap_window_set(Ecore_X_Window win,
|
||||||
{
|
{
|
||||||
if (oldset[i] == subwin)
|
if (oldset[i] == subwin)
|
||||||
{
|
{
|
||||||
if (old_data)
|
|
||||||
free(old_data);
|
free(old_data);
|
||||||
|
|
||||||
old_data = NULL;
|
old_data = NULL;
|
||||||
|
@ -1094,7 +1093,6 @@ ecore_x_icccm_colormap_window_unset(Ecore_X_Window win,
|
||||||
XDeleteProperty(_ecore_x_disp,
|
XDeleteProperty(_ecore_x_disp,
|
||||||
win, ECORE_X_ATOM_WM_COLORMAP_WINDOWS);
|
win, ECORE_X_ATOM_WM_COLORMAP_WINDOWS);
|
||||||
if (_ecore_xlib_sync) ecore_x_sync();
|
if (_ecore_xlib_sync) ecore_x_sync();
|
||||||
if (old_data)
|
|
||||||
free(old_data);
|
free(old_data);
|
||||||
|
|
||||||
old_data = NULL;
|
old_data = NULL;
|
||||||
|
@ -1115,7 +1113,6 @@ ecore_x_icccm_colormap_window_unset(Ecore_X_Window win,
|
||||||
32,
|
32,
|
||||||
data,
|
data,
|
||||||
k);
|
k);
|
||||||
if (old_data)
|
|
||||||
free(old_data);
|
free(old_data);
|
||||||
|
|
||||||
old_data = NULL;
|
old_data = NULL;
|
||||||
|
|
Loading…
Reference in New Issue