diff options
Diffstat (limited to 'pugl/detail/win.c')
-rw-r--r-- | pugl/detail/win.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pugl/detail/win.c b/pugl/detail/win.c index 90c133f..408e7ba 100644 --- a/pugl/detail/win.c +++ b/pugl/detail/win.c @@ -211,7 +211,10 @@ void puglFreeViewInternals(PuglView* view) { if (view) { - view->backend->destroy(view); + if (view->backend) { + view->backend->destroy(view); + } + ReleaseDC(view->impl->hwnd, view->impl->hdc); DestroyWindow(view->impl->hwnd); free(view->impl); |