aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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