summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-04-24 23:25:27 +0000
committerDavid Robillard <d@drobilla.net>2012-04-24 23:25:27 +0000
commite1c98002c99cbb68c5155959de38af8b31a5399c (patch)
tree79e7e44a562d167e9c720584bedf3bafbc716091
parent3051e646d3f9b75d7fbc9ace3cc11966e9536274 (diff)
downloadganv-e1c98002c99cbb68c5155959de38af8b31a5399c.tar.gz
ganv-e1c98002c99cbb68c5155959de38af8b31a5399c.tar.bz2
ganv-e1c98002c99cbb68c5155959de38af8b31a5399c.zip
Fix crash when un-embedding plugin UI.
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@4268 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--ganv/Module.hpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/ganv/Module.hpp b/ganv/Module.hpp
index 9b294c9..4943295 100644
--- a/ganv/Module.hpp
+++ b/ganv/Module.hpp
@@ -109,7 +109,11 @@ public:
}
void embed(Gtk::Widget* widget) {
- ganv_module_embed(gobj(), widget->gobj());
+ if (widget) {
+ ganv_module_embed(gobj(), widget->gobj());
+ } else {
+ ganv_module_embed(gobj(), NULL);
+ }
}
void for_each_port(GanvPortFunction f, void* data) {