diff --git a/thunar/thunar-simple-job.c b/thunar/thunar-simple-job.c index 3ab3e54657d2f91f15e82dfb98e3ec5de1dc27cf..3fe9bd3c29ca0a8bb901eae3204276710a4af89e 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);