GUI: free ViewPort instance on ViewDispatcher free. (#384)

This commit is contained in:
あく 2021-03-24 12:01:00 +03:00 committed by GitHub
parent b85cc7f788
commit 5866be8455
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,6 +30,8 @@ void view_dispatcher_free(ViewDispatcher* view_dispatcher) {
ViewDict_next(it); ViewDict_next(it);
} }
ViewDict_clear(view_dispatcher->views); ViewDict_clear(view_dispatcher->views);
// Free ViewPort
view_port_free(view_dispatcher->view_port);
// Free dispatcher // Free dispatcher
free(view_dispatcher); free(view_dispatcher);
} }