diff options
Diffstat (limited to 'src/implementation.c')
-rw-r--r-- | src/implementation.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/implementation.c b/src/implementation.c index 79ac5d6..d3a6647 100644 --- a/src/implementation.c +++ b/src/implementation.c @@ -163,7 +163,9 @@ puglNewView(PuglWorld* const world) void puglFreeView(PuglView* view) { - puglDispatchSimpleEvent(view, PUGL_DESTROY); + if (view->eventFunc && view->backend) { + puglDispatchSimpleEvent(view, PUGL_DESTROY); + } // Remove from world view list PuglWorld* world = view->world; |