From e13616b5c40f912853be99f0603f0e4c97b22062 Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 3 Apr 2019 21:56:51 +0800 Subject: *misc --- source/tests/win32/01-window/03_sub_menu.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source/tests/win32/01-window/03_sub_menu.cpp') diff --git a/source/tests/win32/01-window/03_sub_menu.cpp b/source/tests/win32/01-window/03_sub_menu.cpp index 793b0f6..24b9654 100644 --- a/source/tests/win32/01-window/03_sub_menu.cpp +++ b/source/tests/win32/01-window/03_sub_menu.cpp @@ -105,7 +105,6 @@ LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, imgdata->Decode(db); img = new Image(); img->Update(imgdata); - wglMakeCurrent(hdc, glc); file2 = new File("root/img.png"); @@ -113,7 +112,7 @@ LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, file2->ReadAll(&db); imgdata->Decode(db); img->Update(imgdata, {50, 100}); - delete imgdata; + imgdata->Release(); break; -- cgit v1.1-26-g67d0