Updating branch refs/heads/master
         to bba664d1d23d93aa4546db73d5b418c901718f7c (commit)
       from d6d82a7534f2e79043719c6d2d60f32c9317e1cb (commit)

commit bba664d1d23d93aa4546db73d5b418c901718f7c
Author: Nick Schermer <n...@xfce.org>
Date:   Thu Nov 1 21:07:40 2012 +0100

    Unset value after inserting to the array.

 thunar/thunar-simple-job.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/thunar/thunar-simple-job.c b/thunar/thunar-simple-job.c
index 3ab3e54..3fe9bd3 100644
--- a/thunar/thunar-simple-job.c
+++ b/thunar/thunar-simple-job.c
@@ -200,6 +200,10 @@ thunar_simple_job_launch (ThunarSimpleJobFunc func,
         }
 
       g_array_insert_val (simple_job->param_values, n, value);
+
+      /* manually unset the value, g_value_unset doesn't work
+       * because we don't want to free the data */
+      memset (&value, 0, sizeof (GValue));
     }
   va_end (var_args);
 
_______________________________________________
Xfce4-commits mailing list
Xfce4-commits@xfce.org
https://mail.xfce.org/mailman/listinfo/xfce4-commits

Reply via email to