Enlightenment CVS committal
Author : barbieri
Project : e17
Module : libs/evas
Dir : e17/libs/evas/src/modules/engines/software_x11
Modified Files:
evas_outbuf.c
Log Message:
Do not free NULL graphic context.
By: Brett Nash (freegc-crash.patch)
===================================================================
RCS file: /cvs/e/e17/libs/evas/src/modules/engines/software_x11/evas_outbuf.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -3 -r1.11 -r1.12
--- evas_outbuf.c 16 Jul 2007 07:25:34 -0000 1.11
+++ evas_outbuf.c 13 Sep 2007 13:43:38 -0000 1.12
@@ -13,7 +13,8 @@
evas_software_x11_outbuf_free(Outbuf * buf)
{
evas_software_x11_outbuf_flush(buf);
- XFreeGC(buf->priv.x.disp, buf->priv.x.gc);
+ if (buf->priv.x.gc)
+ XFreeGC(buf->priv.x.disp, buf->priv.x.gc);
if (buf->priv.x.gcm)
XFreeGC(buf->priv.x.disp, buf->priv.x.gcm);
if (buf->priv.pal)
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs