Fixed minor memory leak on error

Bug 578290. Fixed a minor memory leak that occurs after a
memory allocation error. Found it using cppcheck.
This commit is contained in:
Dr. Michael J. Chudobiak 2009-04-08 10:33:08 -04:00
parent 9eaa76e70d
commit ea866c635b

View File

@ -1184,6 +1184,7 @@ real_save_jpeg (GdkPixbuf *pixbuf,
GDK_PIXBUF_ERROR,
GDK_PIXBUF_ERROR_INSUFFICIENT_MEMORY,
_("Couldn't allocate memory for loading JPEG file"));
g_free (buf);
return FALSE;
}
}