[sysprof/sysprof-3-28] perf: fix incorrect free func for ptr array
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof/sysprof-3-28] perf: fix incorrect free func for ptr array
- Date: Tue, 19 Jun 2018 22:07:06 +0000 (UTC)
commit 709a3ae3420308a04955b47549a13519f98d882c
Author: Christian Hergert <chergert redhat com>
Date: Tue Jun 19 14:19:44 2018 -0700
perf: fix incorrect free func for ptr array
lib/sources/sp-perf-counter.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/lib/sources/sp-perf-counter.c b/lib/sources/sp-perf-counter.c
index 55a748d..5d44a99 100644
--- a/lib/sources/sp-perf-counter.c
+++ b/lib/sources/sp-perf-counter.c
@@ -185,7 +185,7 @@ sp_perf_counter_finalize (SpPerfCounter *self)
self->callback_data_destroy (self->callback_data);
g_clear_pointer (&self->source, g_source_destroy);
- g_clear_pointer (&self->info, g_ptr_array_free);
+ g_clear_pointer (&self->info, g_ptr_array_unref);
g_clear_pointer (&self->context, g_main_context_unref);
g_slice_free (SpPerfCounter, self);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]