From 0077d427a8ad83d1e310c9b0c744418be8dd610f Mon Sep 17 00:00:00 2001 From: Robert Bragg Date: Tue, 29 Apr 2008 12:44:41 +0000 Subject: [PATCH] 2008-04-29 Robert Bragg * clutter/cogl/gles/cogl-texture.c: Replaces an malloc call with g_malloc. --- gles/cogl-texture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gles/cogl-texture.c b/gles/cogl-texture.c index 2eae2c9b7..a9b67a034 100644 --- a/gles/cogl-texture.c +++ b/gles/cogl-texture.c @@ -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 */