summaryrefslogtreecommitdiff
path: root/source/tests
diff options
context:
space:
mode:
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;