diff options
author | chai <chaifix@163.com> | 2019-04-03 21:56:51 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-04-03 21:56:51 +0800 |
commit | e13616b5c40f912853be99f0603f0e4c97b22062 (patch) | |
tree | 6663eab986dbf0317f326bce863edc3d7bf3332e /source/tests/win32/01-window/03_sub_menu.cpp | |
parent | c8a6a8e2dd6f015a31b4f8191ad945a78fe77f3d (diff) |
*misc
Diffstat (limited to 'source/tests/win32/01-window/03_sub_menu.cpp')
-rw-r--r-- | source/tests/win32/01-window/03_sub_menu.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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; |