diff options
author | David Robillard <d@drobilla.net> | 2012-01-04 00:09:39 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-01-04 00:09:39 +0000 |
commit | 5f8106554738df91444ecd8af1c2c5d318ff4326 (patch) | |
tree | dfe7393f59feab86c3ac5a5e3e1aff581ab44fde /src/instance.c | |
parent | aaca0657db8b9015bb1f7194a5b5d03ab8037a10 (diff) | |
download | suil-5f8106554738df91444ecd8af1c2c5d318ff4326.tar.gz suil-5f8106554738df91444ecd8af1c2c5d318ff4326.tar.bz2 suil-5f8106554738df91444ecd8af1c2c5d318ff4326.zip |
Fix errors on clode with Qt4 in Gtk2 wrapper.
git-svn-id: http://svn.drobilla.net/lad/trunk/suil@3914 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/instance.c')
-rw-r--r-- | src/instance.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/instance.c b/src/instance.c index 2bce3f6..92c61f9 100644 --- a/src/instance.c +++ b/src/instance.c @@ -232,15 +232,14 @@ void suil_instance_free(SuilInstance* instance) { if (instance) { + if (instance->wrapper) { + instance->wrapper->free(instance->wrapper); + dlclose(instance->wrapper->lib); + } if (instance->handle) { instance->descriptor->cleanup(instance->handle); } dlclose(instance->lib_handle); - if (instance->wrapper) { - void* lib = instance->wrapper->lib; - instance->wrapper->free(instance->wrapper); - dlclose(lib); - } free(instance); } } |