[gegl] jpg-save: Don't zero alloc buffer



commit 1671038f59a3e552aaf5abd715568312faae7326
Author: Mukund Sivaraman <muks banu com>
Date:   Thu Sep 8 18:01:57 2011 +0530

    jpg-save: Don't zero alloc buffer

 operations/external/jpg-save.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/operations/external/jpg-save.c b/operations/external/jpg-save.c
index 11cd2f3..4c6635d 100644
--- a/operations/external/jpg-save.c
+++ b/operations/external/jpg-save.c
@@ -105,7 +105,7 @@ gegl_buffer_export_jpg (GeglBuffer  *gegl_buffer,
   jpeg_start_compress (&cinfo, TRUE);
 
   row_stride = width * 3;
-  row_pointer[0] = g_malloc0 (row_stride);
+  row_pointer[0] = g_malloc (row_stride);
 
   while (cinfo.next_scanline < cinfo.image_height) {
     GeglRectangle rect;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]