2008-04-29 Robert Bragg <bob@o-hand.com>
authorRobert Bragg <bob@openedhand.com>
Tue, 29 Apr 2008 12:44:41 +0000 (12:44 +0000)
committerRobert Bragg <bob@openedhand.com>
Tue, 29 Apr 2008 12:44:41 +0000 (12:44 +0000)
* clutter/cogl/gles/cogl-texture.c:
Replaces an malloc call with g_malloc.

ChangeLog
clutter/cogl/gles/cogl-texture.c

index ed6b8c3..15f34f8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2008-04-29  Robert Bragg  <bob@o-hand.com>
        
+       * clutter/cogl/gles/cogl-texture.c:
+       Replaces an malloc call with g_malloc.
+
+2008-04-29  Robert Bragg  <bob@o-hand.com>
+       
        * clutter/configure.ac:
        When looking for a GLES 1 library, also try the name "GLESv1_CM".
 
index 2eae2c9..a9b67a0 100644 (file)
@@ -580,7 +580,7 @@ _cogl_texture_upload_subregion_to_gl (CoglTexture *tex,
          slice_bmp.width  = inter_w;
          slice_bmp.height = inter_h;
          slice_bmp.rowstride = bpp * slice_bmp.width;
-         slice_bmp.data = (guchar*) malloc (slice_bmp.rowstride *
+         slice_bmp.data = (guchar*) g_malloc (slice_bmp.rowstride *
                                             slice_bmp.height);
          
          /* Copy subregion data */