summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-10-04 00:40:15 +0000
committerDavid Robillard <d@drobilla.net>2015-10-04 00:40:15 +0000
commit7a329452d330e9679835ec7fd13dfb1048692715 (patch)
tree72231fd517d6d8719f84bdd3d3253b422a4536cb /src
parentd3557ed5b488622dbd47ab36532679f832c5fba5 (diff)
downloadsuil-7a329452d330e9679835ec7fd13dfb1048692715.tar.gz
suil-7a329452d330e9679835ec7fd13dfb1048692715.tar.bz2
suil-7a329452d330e9679835ec7fd13dfb1048692715.zip
Delete parent widget
git-svn-id: http://svn.drobilla.net/lad/trunk/suil@5739 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-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;
}