aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarry Jeffery <harry@exec64.co.uk>2015-11-10 16:19:04 +0000
committerHarry Jeffery <harry@exec64.co.uk>2015-11-10 16:19:04 +0000
commit4741faa60d6677204da80b23245e7cfcf892c7e8 (patch)
tree0cb1209ea34c089252bc20456a3ce9dd689527c2
parent56a647c4a4933c3c69c7bd0129848f8dedfc03f6 (diff)
downloadimv-4741faa60d6677204da80b23245e7cfcf892c7e8.tar.gz
Don't hang onto old window pointer in viewport
-rw-r--r--viewport.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/viewport.c b/viewport.c
index 3ac5505..8717d80 100644
--- a/viewport.c
+++ b/viewport.c
@@ -30,6 +30,7 @@ void imv_init_viewport(struct imv_viewport *view, SDL_Window *window)
void imv_destroy_viewport(struct imv_viewport *view)
{
+ view->window = NULL;
return;
}