aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/hw/xwin/winwin32rootless.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2010-07-23 12:54:07 +0000
committermarha <marha@users.sourceforge.net>2010-07-23 12:54:07 +0000
commit36df22a9b06d00d8e2ca97c274317d61e117c5fc (patch)
tree9b1bbb4af88129f5716202096de15665678d91e5 /xorg-server/hw/xwin/winwin32rootless.c
parent63dbb32737306d4c567a0bcbd7153da77cf864b5 (diff)
downloadvcxsrv-36df22a9b06d00d8e2ca97c274317d61e117c5fc.tar.gz
vcxsrv-36df22a9b06d00d8e2ca97c274317d61e117c5fc.tar.bz2
vcxsrv-36df22a9b06d00d8e2ca97c274317d61e117c5fc.zip
Fix a GDI bitmap resource leak of window icons
Internal WM workaround for Java AWT bug
Diffstat (limited to 'xorg-server/hw/xwin/winwin32rootless.c')
-rw-r--r--xorg-server/hw/xwin/winwin32rootless.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/xorg-server/hw/xwin/winwin32rootless.c b/xorg-server/hw/xwin/winwin32rootless.c
index 85a932f75..862d5ba98 100644
--- a/xorg-server/hw/xwin/winwin32rootless.c
+++ b/xorg-server/hw/xwin/winwin32rootless.c
@@ -365,8 +365,8 @@ void
winMWExtWMDestroyFrame (RootlessFrameID wid)
{
win32RootlessWindowPtr pRLWinPriv = (win32RootlessWindowPtr) wid;
- HICON hiconClass;
- HICON hiconSmClass;
+ HICON hicon;
+ HICON hiconSm;
HMODULE hInstance;
int iReturn;
char pszClass[CLASS_NAME_LENGTH];
@@ -397,8 +397,8 @@ winMWExtWMDestroyFrame (RootlessFrameID wid)
/* Store the info we need to destroy after this window is gone */
hInstance = (HINSTANCE) GetClassLongPtr (pRLWinPriv->hWnd, GCLP_HMODULE);
- hiconClass = (HICON) GetClassLongPtr (pRLWinPriv->hWnd, GCLP_HICON);
- hiconSmClass = (HICON) GetClassLongPtr (pRLWinPriv->hWnd, GCLP_HICONSM);
+ hicon = (HICON) GetClassLongPtr (pRLWinPriv->hWnd, GCLP_HICON);
+ hiconSm = (HICON) GetClassLongPtr (pRLWinPriv->hWnd, GCLP_HICONSM);
iReturn = GetClassName (pRLWinPriv->hWnd, pszClass, CLASS_NAME_LENGTH);
pRLWinPriv->fClose = TRUE;
@@ -418,11 +418,11 @@ winMWExtWMDestroyFrame (RootlessFrameID wid)
#if CYGMULTIWINDOW_DEBUG
winDebug ("winMWExtWMDestroyFramew - %d Deleting Icon: ", iReturn);
#endif
-
- winDestroyIcon(hiconClass);
- winDestroyIcon(hiconSmClass);
}
+ winDestroyIcon(hiconClass);
+ winDestroyIcon(hiconSmClass);
+
#if CYGMULTIWINDOW_DEBUG
winDebug ("winMWExtWMDestroyFrame - done\n");
#endif