https://git.reactos.org/?p=reactos.git;a=commitdiff;h=3f9e695061e08ec81321b…
commit 3f9e695061e08ec81321bfce5ab5e2808d400b24
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Thu Dec 26 11:25:48 2019 +0900
Commit: GitHub <noreply(a)github.com>
CommitDate: Thu Dec 26 11:25:48 2019 +0900
[SDK][INCLUDE] Add Gdiplus::Image::~Image (#2174)
Gdiplus::Image had no dtor. CORE-16566
---
sdk/include/psdk/gdiplusheaders.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/sdk/include/psdk/gdiplusheaders.h b/sdk/include/psdk/gdiplusheaders.h
index 893a8b0e4af..a48edc6dfe7 100644
--- a/sdk/include/psdk/gdiplusheaders.h
+++ b/sdk/include/psdk/gdiplusheaders.h
@@ -47,6 +47,11 @@ public:
return newImage;
}
+ virtual ~Image()
+ {
+ DllExports::GdipDisposeImage(image);
+ }
+
static Image *FromFile(const WCHAR *filename, BOOL useEmbeddedColorManagement = FALSE)
{
return new Image(filename, useEmbeddedColorManagement);