[PATCH 1/5] gdiplus: Remove unnecessary IStream_AddRef from GdipLoadImageFromFile.
Nathan Beckmann
nathan.beckmann at gmail.com
Mon Mar 10 10:16:53 CDT 2008
Discovered while writing tests for GdipSaveImageToFile. It was
preventing me from deleting output files.
---
dlls/gdiplus/image.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/dlls/gdiplus/image.c b/dlls/gdiplus/image.c
index 4f05ba0..f150637 100644
--- a/dlls/gdiplus/image.c
+++ b/dlls/gdiplus/image.c
@@ -740,8 +740,6 @@ GpStatus WINGDIPAPI GdipLoadImageFromStream(IStream* stream, GpImage **image)
return GenericError;
}
- IStream_AddRef(stream);
-
IPicture_get_Type(pic, &type);
if(type == PICTYPE_BITMAP){
--
1.5.4.2
More information about the wine-patches
mailing list