forked from AuroraMiddleware/gtk
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:
parent
9eaa76e70d
commit
ea866c635b
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user