diff options
author | Dr. Michael J. Chudobiak <mjc@xena.(none)> | 2009-04-08 10:33:08 -0400 |
---|---|---|
committer | Dr. Michael J. Chudobiak <mjc@xena.(none)> | 2009-04-08 10:33:08 -0400 |
commit | ea866c635b2c95067ef32b0b9a1aa90814f0b87c (patch) | |
tree | e19b42200fd151d2dc52ed44643e21c0c8cabce5 /gdk-pixbuf | |
parent | 9eaa76e70d23e81d74d2798969e8988ac2fa0b8b (diff) | |
download | gdk-pixbuf-ea866c635b2c95067ef32b0b9a1aa90814f0b87c.tar.gz |
Fixed minor memory leak on error
Bug 578290. Fixed a minor memory leak that occurs after a
memory allocation error. Found it using cppcheck.
Diffstat (limited to 'gdk-pixbuf')
-rw-r--r-- | gdk-pixbuf/io-jpeg.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdk-pixbuf/io-jpeg.c b/gdk-pixbuf/io-jpeg.c index da59386c1..cf8c9ed19 100644 --- a/gdk-pixbuf/io-jpeg.c +++ b/gdk-pixbuf/io-jpeg.c @@ -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; } } |