mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 12:23:25 +00:00
fix a resource leak
svn path=/trunk/; revision=29432
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user