summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/x11_in_qt4.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/x11_in_qt4.cpp b/src/x11_in_qt4.cpp
index 107a4bd..8d12526 100644
--- a/src/x11_in_qt4.cpp
+++ b/src/x11_in_qt4.cpp
@@ -78,6 +78,10 @@ wrapper_free(SuilWrapper* wrapper)
{
SuilX11InQt4Wrapper* impl = (SuilX11InQt4Wrapper*)wrapper->impl;
+ if (impl->parent) {
+ delete impl->parent;
+ }
+
if (impl->host_widget) {
delete impl->host_widget;
}