aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2021-02-18 10:04:57 +0100
committerHanspeter Portner <dev@open-music-kontrollers.ch>2021-02-18 10:04:57 +0100
commitb0f93f3e71521baf203cc3f0246387301ac3d3d0 (patch)
tree4b2f9550bd5de215b35ca72d42e0117bc44fe331
parente2f469421272a40f48efa87f474295e3abfc41ed (diff)
downloadprops.lv2-master.tar.xz
always clear temporary memory in save before fill.HEADmaster
-rw-r--r--VERSION2
-rw-r--r--props.h3
2 files changed, 4 insertions, 1 deletions
diff --git a/VERSION b/VERSION
index 805de21..5130959 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-0.1.163
+0.1.165
diff --git a/props.h b/props.h
index 99afff5..b3905ab 100644
--- a/props.h
+++ b/props.h
@@ -1088,6 +1088,9 @@ props_save(props_t *props, LV2_State_Store_Function store,
if(impl->access == props->urid.patch_readable)
continue; // skip read-only, as it makes no sense to restore them
+ // always clear memory
+ memset(body, 0x0, props->max_size);
+
_props_impl_spin_lock(impl, PROP_STATE_NONE, PROP_STATE_LOCK);
// create temporary copy of value, store() may well be blocking