From 7246a487d9d1a7dcafef9f51815ab710dfe2f2b4 Mon Sep 17 00:00:00 2001 From: Vincent Povirk Date: Thu, 20 Aug 2009 16:43:47 -0500 Subject: [PATCH] gdiplus: Remove an ipicture reference in GdipCreateBitmapFromStream. --- dlls/gdiplus/image.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/gdiplus/image.c b/dlls/gdiplus/image.c index 0cdc7ef78c7..7fb76b047dc 100644 --- a/dlls/gdiplus/image.c +++ b/dlls/gdiplus/image.c @@ -646,8 +646,8 @@ GpStatus WINGDIPAPI GdipCreateBitmapFromStream(IStream* stream, return stat; if((*bitmap)->image.type != ImageTypeBitmap){ - IPicture_Release((*bitmap)->image.picture); - GdipFree(bitmap); + GdipDisposeImage(&(*bitmap)->image); + *bitmap = NULL; return GenericError; /* FIXME: what error to return? */ }