[sysprof] perf: fix incorrect free func for ptr array
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof] perf: fix incorrect free func for ptr array
- Date: Tue, 19 Jun 2018 21:20:28 +0000 (UTC)
commit 7cb15d2de785e6419f623b7d76f2d161871b0254
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]