[PATCH] winex11.drv: free bitmap info after being done (Coverity)

Marcus Meissner marcus at jet.franken.de
Sat Oct 13 10:13:37 CDT 2012


Hi,

info seems to leak out of the function says Coverity and I have
to agree.

Ciao, Marcus
---
 dlls/winex11.drv/systray.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/winex11.drv/systray.c b/dlls/winex11.drv/systray.c
index ed09376..5f0791e 100644
--- a/dlls/winex11.drv/systray.c
+++ b/dlls/winex11.drv/systray.c
@@ -432,6 +432,7 @@ static void repaint_tray_icon( struct tray_icon *icon )
 
     UpdateLayeredWindow( icon->window, 0, NULL, NULL, hdc, NULL, 0, &blend, ULW_ALPHA );
 done:
+    HeapFree (GetProcessHeap(), 0, info);
     if (hdc) DeleteDC( hdc );
     if (dib) DeleteObject( dib );
 }
-- 
1.7.3.4




More information about the wine-patches mailing list