aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/x11.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/x11.c b/src/x11.c
index 6fe5b8b..96a7e17 100644
--- a/src/x11.c
+++ b/src/x11.c
@@ -756,20 +756,10 @@ void
puglFreeViewInternals(PuglView* const view)
{
if (view && view->impl) {
- clearX11Clipboard(&view->impl->clipboard);
+ puglUnrealize(view);
free(view->impl->clipboard.data.data);
free(view->impl->clipboard.formats);
free(view->impl->clipboard.formatStrings);
- if (view->impl->xic) {
- XDestroyIC(view->impl->xic);
- }
- if (view->backend) {
- view->backend->destroy(view);
- }
- if (view->world->impl->display && view->impl->win) {
- XDestroyWindow(view->world->impl->display, view->impl->win);
- }
- XFree(view->impl->vi);
free(view->impl);
}
}