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:
@ -1184,6 +1184,7 @@ real_save_jpeg (GdkPixbuf *pixbuf,
|
|||||||
GDK_PIXBUF_ERROR,
|
GDK_PIXBUF_ERROR,
|
||||||
GDK_PIXBUF_ERROR_INSUFFICIENT_MEMORY,
|
GDK_PIXBUF_ERROR_INSUFFICIENT_MEMORY,
|
||||||
_("Couldn't allocate memory for loading JPEG file"));
|
_("Couldn't allocate memory for loading JPEG file"));
|
||||||
|
g_free (buf);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user