fix a resource leak

svn path=/trunk/; revision=29432
This commit is contained in:
Christoph von Wittich
2007-10-07 00:43:43 +00:00
parent 25cde1b38b
commit 278c4a1b03
+2
View File
@@ -328,6 +328,8 @@ static LRESULT WINAPI NOTEPAD_WndProc(HWND hWnd, UINT msg, WPARAM wParam,
case WM_CLOSE:
if (DoCloseFile()) {
if (Globals.hFont)
DeleteObject(Globals.hFont);
DestroyWindow(hWnd);
}
break;