summaryrefslogtreecommitdiffstats
path: root/src/win_in_gtk2.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-09-11 19:42:02 +0000
committerDavid Robillard <d@drobilla.net>2015-09-11 19:42:02 +0000
commit36b470397a178ca64bc6d98ecc652aaa7671c938 (patch)
treee9749b710d23c1c1abf28c158e2c80d7036efef2 /src/win_in_gtk2.cpp
parent0dc88a80b345e0c2fe13bf54a0d57b348f6205d2 (diff)
downloadsuil-36b470397a178ca64bc6d98ecc652aaa7671c938.tar.gz
suil-36b470397a178ca64bc6d98ecc652aaa7671c938.tar.bz2
suil-36b470397a178ca64bc6d98ecc652aaa7671c938.zip
Zero-initialize wrapper structs.
git-svn-id: http://svn.drobilla.net/lad/trunk/suil@5723 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/win_in_gtk2.cpp')
-rw-r--r--src/win_in_gtk2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/win_in_gtk2.cpp b/src/win_in_gtk2.cpp
index 4cc19c1..eabc1ac 100644
--- a/src/win_in_gtk2.cpp
+++ b/src/win_in_gtk2.cpp
@@ -212,7 +212,7 @@ suil_wrapper_new(SuilHost* host,
return NULL;
}
- SuilWrapper* wrapper = (SuilWrapper*)malloc(sizeof(SuilWrapper));
+ SuilWrapper* wrapper = (SuilWrapper*)calloc(1, sizeof(SuilWrapper));
wrapper->wrap = wrapper_wrap;
wrapper->free = wrapper_free;