s/malloc/g_malloc/ s/free/g_free/

s/malloc/g_malloc/
s/free/g_free/


--Sven
This commit is contained in:
Sven Neumann
2000-01-25 12:13:23 +00:00
parent b6d2b2b125
commit 4a555b0991

View File

@ -25,6 +25,7 @@
*/
/* revision history:
* version 1.1.15a; 2000/01/25 hof: use g_malloc, g_free
* version 1.00.00; 1998/10/26 hof: 1.st (pre) release
*/
@ -840,8 +841,8 @@ xjpg_save_drawable (char *filename,
*/
/* JSAMPLEs per row in image_buffer */
rowstride = drawable->bpp * drawable->width;
temp = (guchar *) malloc (cinfo.image_width * cinfo.input_components);
data = (guchar *) malloc (rowstride * gimp_tile_height ());
temp = (guchar *) g_malloc (cinfo.image_width * cinfo.input_components);
data = (guchar *) g_malloc (rowstride * gimp_tile_height ());
src = data;
while (cinfo.next_scanline < cinfo.image_height)
@ -932,8 +933,8 @@ xjpg_save_drawable (char *filename,
/* This is an important step since it will release a good deal of memory. */
jpeg_destroy_compress (&cinfo);
/* free the temporary buffer */
free (temp);
free (data);
g_free (temp);
g_free (data);
gimp_drawable_detach (drawable);