eog r5090 - in branches/gnome-2-26: . src



Author: friemann
Date: Tue Apr  7 18:26:25 2009
New Revision: 5090
URL: http://svn.gnome.org/viewvc/eog?rev=5090&view=rev

Log:
2009-04-07  Felix Riemann  <friemann svn gnome org>

	* src/eog-image-jpeg.c: (_save_any_as_jpeg):
	Fix two leaks reported on eog-list.


Modified:
   branches/gnome-2-26/ChangeLog
   branches/gnome-2-26/src/eog-image-jpeg.c

Modified: branches/gnome-2-26/src/eog-image-jpeg.c
==============================================================================
--- branches/gnome-2-26/src/eog-image-jpeg.c	(original)
+++ branches/gnome-2-26/src/eog-image-jpeg.c	Tue Apr  7 18:26:25 2009
@@ -378,6 +378,7 @@
 			     GDK_PIXBUF_ERROR,
 			     GDK_PIXBUF_ERROR_INSUFFICIENT_MEMORY,
 			     _("Couldn't allocate memory for loading JPEG file"));
+		fclose (outfile);
 		return FALSE;
 	}
 
@@ -398,6 +399,7 @@
 
 	/* error exit routine */
 	if (sigsetjmp (jerr.setjmp_buffer, 1)) {
+		g_free (buf);
 		fclose (outfile);
 		jpeg_destroy_compress (&cinfo);
 		return FALSE;



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