Author: cfinck
Date: Thu Jul 26 18:06:48 2007
New Revision: 27841
URL:
http://svn.reactos.org/svn/reactos?rev=27841&view=rev
Log:
Fix a memory leak I introduced...
Modified:
trunk/tools/RosBE-Windows/Tools/config/options.c
Modified: trunk/tools/RosBE-Windows/Tools/config/options.c
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosBE-Windows/Tools/config/o…
==============================================================================
--- trunk/tools/RosBE-Windows/Tools/config/options.c (original)
+++ trunk/tools/RosBE-Windows/Tools/config/options.c Thu Jul 26 18:06:48 2007
@@ -59,12 +59,12 @@
DlgProc(HWND Dlg, UINT Msg, WPARAM wParam, LPARAM lParam)
{
int i = 0;
+ static HICON hIcon;
+
switch (Msg)
{
case WM_INITDIALOG:
{
- HICON hIcon;
-
hIcon = LoadImage( hInstance,
MAKEINTRESOURCE(ID_OPTICON),
IMAGE_ICON,
@@ -117,6 +117,11 @@
return FALSE;
}
+ case WM_DESTROY:
+ {
+ DestroyIcon(hIcon);
+ }
+
case WM_CLOSE:
{
EndDialog(Dlg, 0);