[2/21] gdiplus: implemented GdipDisposeImage

Evan Stade estade at gmail.com
Tue Jul 31 21:14:57 CDT 2007


Hi,

 dlls/gdiplus/image.c |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)
-- 
Evan Stade
-------------- next part --------------
diff --git a/dlls/gdiplus/image.c b/dlls/gdiplus/image.c
index 9b6ed41..0e86c4e 100644
--- a/dlls/gdiplus/image.c
+++ b/dlls/gdiplus/image.c
@@ -21,6 +21,8 @@ #include <stdarg.h>
 #include "windef.h"
 #include "winbase.h"
 #include "wingdi.h"
+
+#define COBJMACROS
 #include "objbase.h"
 
 #include "gdiplus.h"
@@ -31,15 +33,13 @@ WINE_DEFAULT_DEBUG_CHANNEL(gdiplus);
 
 GpStatus WINGDIPAPI GdipDisposeImage(GpImage *image)
 {
-    static int calls;
-
-     if(!image)
-         return InvalidParameter;
+    if(!image)
+        return InvalidParameter;
 
-     if(!(calls++))
-         FIXME("not implemented\n");
+    IPicture_Release(image->picture);
+    GdipFree(image);
 
-     return NotImplemented;
+    return Ok;
 }
 
 GpStatus WINGDIPAPI GdipGetImageBounds(GpImage *image, GpRectF *srcRect,
-- 
1.4.1


More information about the wine-patches mailing list