Enlightenment CVS committal

Author  : kwo
Project : e17
Module  : libs/imlib2

Dir     : e17/libs/imlib2/src/lib


Modified Files:
        ximage.c 


Log Message:
Oops - missed one (malloc check).

===================================================================
RCS file: /cvs/e/e17/libs/imlib2/src/lib/ximage.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- ximage.c    6 Jan 2008 13:57:26 -0000       1.5
+++ ximage.c    6 Jan 2008 15:07:47 -0000       1.6
@@ -228,6 +228,12 @@
         return NULL;
      }
    list_si[list_num - 1] = malloc(sizeof(XShmSegmentInfo));
+   if (!list_si[list_num - 1])
+     {
+        /* failed to allocate memory */
+        list_num--;
+        return NULL;
+     }
 
    /* work on making a shared image */
    xim = NULL;



-------------------------------------------------------------------------
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
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to