diff options
-rw-r--r-- | src/core/stack-tracker.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/stack-tracker.c b/src/core/stack-tracker.c index 922801f2..8265ce2c 100644 --- a/src/core/stack-tracker.c +++ b/src/core/stack-tracker.c @@ -479,8 +479,7 @@ meta_stack_tracker_free (MetaStackTracker *tracker) if (tracker->predicted_stack) g_array_free (tracker->predicted_stack, TRUE); - g_queue_foreach (tracker->unverified_predictions, (GFunc)meta_stack_op_free, NULL); - g_queue_free (tracker->unverified_predictions); + g_queue_free_full (tracker->unverified_predictions, (GDestroyNotify) meta_stack_op_free); tracker->unverified_predictions = NULL; g_free (tracker); |