summaryrefslogtreecommitdiff
path: root/source/tests
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2019-04-03 21:56:51 +0800
committerchai <chaifix@163.com>2019-04-03 21:56:51 +0800
commite13616b5c40f912853be99f0603f0e4c97b22062 (patch)
tree6663eab986dbf0317f326bce863edc3d7bf3332e /source/tests
parentc8a6a8e2dd6f015a31b4f8191ad945a78fe77f3d (diff)
*misc
Diffstat (limited to 'source/tests')
-rw-r--r--source/tests/05-physfs/main.cpp2
-rw-r--r--source/tests/win32/01-window/03_sub_menu.cpp3
2 files changed, 2 insertions, 3 deletions
diff --git a/source/tests/05-physfs/main.cpp b/source/tests/05-physfs/main.cpp
index f30a75b..4ae05b8 100644
--- a/source/tests/05-physfs/main.cpp
+++ b/source/tests/05-physfs/main.cpp
@@ -52,7 +52,7 @@ function main()
while true do
thread:Dispatch()
- Thread.Sleep(100)
+ Thread.Sleep(100)
end
end
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;