summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/ecore_x/xlib/ecore_x_window.c1
-rw-r--r--src/modules/evas/engines/software_x11/evas_xlib_outbuf.c4
2 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/ecore_x/xlib/ecore_x_window.c b/src/lib/ecore_x/xlib/ecore_x_window.c
index 860e2bf9dc..ba73ccf449 100644
--- a/src/lib/ecore_x/xlib/ecore_x_window.c
+++ b/src/lib/ecore_x/xlib/ecore_x_window.c
@@ -1669,7 +1669,6 @@ _ecore_x_window_argb_internal_new(Ecore_X_Window parent,
1669 CWWinGravity, 1669 CWWinGravity,
1670 &attr); 1670 &attr);
1671 if (_ecore_xlib_sync) ecore_x_sync(); 1671 if (_ecore_xlib_sync) ecore_x_sync();
1672 XFreeColormap(_ecore_x_disp, attr.colormap);
1673 1672
1674 if (parent == DefaultRootWindow(_ecore_x_disp)) 1673 if (parent == DefaultRootWindow(_ecore_x_disp))
1675 ecore_x_window_defaults_set(win); 1674 ecore_x_window_defaults_set(win);
diff --git a/src/modules/evas/engines/software_x11/evas_xlib_outbuf.c b/src/modules/evas/engines/software_x11/evas_xlib_outbuf.c
index a189accc27..db8f6558f6 100644
--- a/src/modules/evas/engines/software_x11/evas_xlib_outbuf.c
+++ b/src/modules/evas/engines/software_x11/evas_xlib_outbuf.c
@@ -180,6 +180,10 @@ evas_software_xlib_outbuf_free(Outbuf *buf)
180 if (buf->priv.pal) 180 if (buf->priv.pal)
181 evas_software_xlib_x_color_deallocate(buf->priv.x11.xlib.disp, buf->priv.x11.xlib.cmap, 181 evas_software_xlib_x_color_deallocate(buf->priv.x11.xlib.disp, buf->priv.x11.xlib.cmap,
182 buf->priv.x11.xlib.vis, buf->priv.pal); 182 buf->priv.x11.xlib.vis, buf->priv.pal);
183
184 /* safe because no effect on the default colormap */
185 XFreeColormap (buf->priv.x11.xlib.disp, buf->priv.x11.xlib.cmap);
186
183 eina_array_flush(&buf->priv.onebuf_regions); 187 eina_array_flush(&buf->priv.onebuf_regions);
184 free(buf); 188 free(buf);
185 _clear_xob(0); 189 _clear_xob(0);