19 Jun
2012
19 Jun
'12
2:29 p.m.
Vincent Povirk <madewokherd(a)gmail.com> wrote:
+ if (stat == Ok) + { + memcpy(&new_image->format, &codec->info.FormatID, sizeof(GUID)); + free_image_data(image); + if (image->type == ImageTypeBitmap) + *(GpBitmap *)image = *(GpBitmap *)new_image; + else if (image->type == ImageTypeMetafile) + *(GpMetafile *)image = *(GpMetafile *)new_image; + return Ok; + }
You appear to be leaking new_image.
Thanks. I hope that won't prevent accepting other patches in the series. -- Dmitry.