diff options
author | David Robillard <d@drobilla.net> | 2012-11-14 03:55:56 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-11-14 03:55:56 +0000 |
commit | 3fdc4c34494cadc92bc836343e430d5cfe4bc6bc (patch) | |
tree | e8bf7821b4212bd94196621650f056c9775ec494 | |
parent | 7258edd2c1e32162d057ce28e9b2661d814bccee (diff) | |
download | suil-3fdc4c34494cadc92bc836343e430d5cfe4bc6bc.tar.gz suil-3fdc4c34494cadc92bc836343e430d5cfe4bc6bc.tar.bz2 suil-3fdc4c34494cadc92bc836343e430d5cfe4bc6bc.zip |
Fix compilation error in last commit.
git-svn-id: http://svn.drobilla.net/lad/trunk/suil@4813 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r-- | src/gtk2_in_qt4.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/gtk2_in_qt4.cpp b/src/gtk2_in_qt4.cpp index e23e988..8f15291 100644 --- a/src/gtk2_in_qt4.cpp +++ b/src/gtk2_in_qt4.cpp @@ -125,6 +125,13 @@ suil_wrapper_new(SuilHost* host, gtk_init(NULL, NULL); } + /* Create wrapper implementation. */ + SuilGtk2InQt4Wrapper* const impl = (SuilGtk2InQt4Wrapper*) + malloc(sizeof(SuilGtk2InQt4Wrapper)); + impl->host_widget = NULL; + impl->parent = NULL; + impl->plug = NULL; + /* Set parent widget if given. */ for (unsigned i = 0; i < n_features; ++i) { if (!strcmp((*features)[i]->URI, LV2_UI__parent)) { @@ -132,12 +139,6 @@ suil_wrapper_new(SuilHost* host, } } - /* Create wrapper implementation. */ - SuilGtk2InQt4Wrapper* const impl = (SuilGtk2InQt4Wrapper*) - malloc(sizeof(SuilGtk2InQt4Wrapper)); - impl->host_widget = NULL; - impl->plug = NULL; - SuilWrapper* wrapper = (SuilWrapper*)malloc(sizeof(SuilWrapper)); wrapper->wrap = wrapper_wrap; wrapper->free = wrapper_free; |