changeset 29104:158f9d2320c7 stable

linkprop.m: Lock file to avoid invalid function handles to subfunctions (bug #59551). * scripts/plot/util/linkprop.m: Lock file to avoid invalid function handles to subfunctions after clearing functions.
author Markus Mützel <markus.muetzel@gmx.de>
date Thu, 26 Nov 2020 19:24:22 +0100
parents 40d95224c155
children 3d9a05cb0894 756cd46286c6
files scripts/plot/util/linkprop.m
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/util/linkprop.m	Thu Nov 26 19:18:56 2020 +0100
+++ b/scripts/plot/util/linkprop.m	Thu Nov 26 19:24:22 2020 +0100
@@ -85,6 +85,10 @@
     set (h(2:end), prop{j}, get (h(1), prop{j}));
   endfor
 
+  ## FIXME: This file needs to be locked to avoid bug #59439.  Remove this
+  ##        lock once that bug is properly fixed.
+  mlock ();
+
   ## Add listeners to all objects
   for i = 1 : numel (h)
     for j = 1 : numel (prop)