summaryrefslogtreecommitdiffstats
path: root/src/host.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-06-01 19:14:25 +0000
committerDavid Robillard <d@drobilla.net>2011-06-01 19:14:25 +0000
commitb4241912379b321a1a2ec0d192faff12f8db2101 (patch)
tree9f9bb51ca2aefbcf0f3499f9388a5048773c7d62 /src/host.c
parent02fe4df201838c381d4106ec92849cbb5b959ccb (diff)
downloadsuil-b4241912379b321a1a2ec0d192faff12f8db2101.tar.gz
suil-b4241912379b321a1a2ec0d192faff12f8db2101.tar.bz2
suil-b4241912379b321a1a2ec0d192faff12f8db2101.zip
Fix GtkBuilder using (and likely other) Gtk UIs in Qt4 hosts that do not link to Gtk (fix ticket #696).
git-svn-id: http://svn.drobilla.net/lad/trunk/suil@3345 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/host.c')
-rw-r--r--src/host.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/host.c b/src/host.c
index 48b0b6a..c57b1c6 100644
--- a/src/host.c
+++ b/src/host.c
@@ -28,6 +28,7 @@ suil_host_new(SuilPortWriteFunc write_func,
host->index_func = index_func;
host->subscribe_func = subscribe_func;
host->unsubscribe_func = unsubscribe_func;
+ host->gtk_lib = NULL;
return host;
}
@@ -35,5 +36,8 @@ SUIL_API
void
suil_host_free(SuilHost* host)
{
+ if (host->gtk_lib) {
+ dlclose(host->gtk_lib);
+ }
free(host);
}