diff options
author | David Robillard <d@drobilla.net> | 2015-09-12 16:02:02 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2015-09-12 16:02:02 +0000 |
commit | efa94682fd223a084687cdcf0f626d56325de0e0 (patch) | |
tree | 6da00f1bd9a861679aca9a53cc702d1505d536b5 /src/host.c | |
parent | f18371240cf3d32940e9a67844505b46006e0788 (diff) | |
download | suil-efa94682fd223a084687cdcf0f626d56325de0e0.tar.gz suil-efa94682fd223a084687cdcf0f626d56325de0e0.tar.bz2 suil-efa94682fd223a084687cdcf0f626d56325de0e0.zip |
Add Gtk2 and X11 in Qt5 wrappers.
git-svn-id: http://svn.drobilla.net/lad/trunk/suil@5725 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/host.c')
-rw-r--r-- | src/host.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -23,13 +23,11 @@ suil_host_new(SuilPortWriteFunc write_func, SuilPortSubscribeFunc subscribe_func, SuilPortUnsubscribeFunc unsubscribe_func) { - SuilHost* host = (SuilHost*)malloc(sizeof(struct SuilHostImpl)); + SuilHost* host = (SuilHost*)calloc(1, sizeof(struct SuilHostImpl)); host->write_func = write_func; host->index_func = index_func; host->subscribe_func = subscribe_func; host->unsubscribe_func = unsubscribe_func; - host->touch_func = NULL; - host->gtk_lib = NULL; return host; } |