diff options
Diffstat (limited to 'src/x11_in_qt4.cpp')
-rw-r--r-- | src/x11_in_qt4.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/x11_in_qt4.cpp b/src/x11_in_qt4.cpp index 8880dbe..fa58fc5 100644 --- a/src/x11_in_qt4.cpp +++ b/src/x11_in_qt4.cpp @@ -124,11 +124,9 @@ suil_wrapper_new(SuilHost* host, unsigned n_features) { SuilX11InQt4Wrapper* const impl = (SuilX11InQt4Wrapper*) - malloc(sizeof(SuilX11InQt4Wrapper)); - impl->host_widget = NULL; - impl->parent = NULL; + calloc(1, sizeof(SuilX11InQt4Wrapper)); - SuilWrapper* wrapper = (SuilWrapper*)malloc(sizeof(SuilWrapper)); + SuilWrapper* wrapper = (SuilWrapper*)calloc(1, sizeof(SuilWrapper)); wrapper->wrap = wrapper_wrap; wrapper->free = wrapper_free; |