From 3797dab429860cc7808063df0bd21b85aabc642b Mon Sep 17 00:00:00 2001 From: Magnus Olsen Date: Fri, 23 May 2008 18:14:15 +0000 Subject: [PATCH] Fixed memory leak in w32knapi if it fail found gdihandle table patch by Daniel Zimmermann (netzimme at aim dot com) See issue #3266 for more details. svn path=/trunk/; revision=33664 --- rostests/apitests/w32knapi/w32knapi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rostests/apitests/w32knapi/w32knapi.c b/rostests/apitests/w32knapi/w32knapi.c index 0c4b2160dc9..2146be1ad52 100644 --- a/rostests/apitests/w32knapi/w32knapi.c +++ b/rostests/apitests/w32knapi/w32knapi.c @@ -87,6 +87,8 @@ WinMain(HINSTANCE hInstance, GdiHandleTable = MyGdiQueryTable(); if(!GdiHandleTable) { + FreeLibrary(g_hModule); + printf("GdiHandleTable not found!\n"); return -1; }