aboutsummaryrefslogtreecommitdiffhomepage
path: root/unix_test_app/main.cpp
diff options
context:
space:
mode:
authorGravatar Scroggo <Scroggo@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-06-21 16:01:26 +0000
committerGravatar Scroggo <Scroggo@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-06-21 16:01:26 +0000
commit62b65b0913566381db468277de07e5dd2a9237ca (patch)
treed5bfc75e09a389922f96b79d759bbfbcf3d861a9 /unix_test_app/main.cpp
parentfd0ffcf486a239d65b586bd638e5aaca907244de (diff)
SampleApp fixes.
On Android, delete gWindow before calling application_term, avoiding a crash each time the app closes. Also make sure the screen is redrawn when resuming. On Linux, delete gWindow to avoid memory leak. In general, allow moving from sample 0 to the last sample. Reviewed at http://codereview.appspot.com/4639060 git-svn-id: http://skia.googlecode.com/svn/trunk@1661 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'unix_test_app/main.cpp')
-rw-r--r--unix_test_app/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/unix_test_app/main.cpp b/unix_test_app/main.cpp
index 5be93bc479..9dafb3c902 100644
--- a/unix_test_app/main.cpp
+++ b/unix_test_app/main.cpp
@@ -25,6 +25,7 @@ int main(){
gWindow->loop();
+ delete gWindow;
application_term();
return 0;
}