From 2bdce31057d227dc827e359f3a438bd9e908f5c1 Mon Sep 17 00:00:00 2001 From: diamondburned Date: Sun, 3 Nov 2024 11:19:34 -0800 Subject: [PATCH] Fix listmodel trace logging --- pkg/core/gioutil/listmodel.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/pkg/core/gioutil/listmodel.c b/pkg/core/gioutil/listmodel.c index 71a443dcc..2231486bc 100644 --- a/pkg/core/gioutil/listmodel.c +++ b/pkg/core/gioutil/listmodel.c @@ -18,11 +18,10 @@ static void gotk4_gbox_object_init(Gotk4GboxObject *self) { self->id = 0; } static void gotk4_gbox_object_finalize(GObject *object) { Gotk4GboxObject *self = GOTK4_GBOX_OBJECT(object); - g_warn_if_fail(self->id == 0); + g_warn_if_fail(self->id != 0); callbackDelete(self->id); g_log_structured("Gotk4GboxObject", G_LOG_LEVEL_DEBUG, // - "GBOX_ID", self->id, // - "MESSAGE", "Freed gbox object in gotk4_gbox_object_finalize"); + "MESSAGE", "Freed gbox object %d in gotk4_gbox_object_finalize", self->id); G_OBJECT_CLASS(gotk4_gbox_object_parent_class)->finalize(object); } @@ -35,11 +34,6 @@ static void gotk4_gbox_object_class_init(Gotk4GboxObjectClass *klass) { Gotk4GboxObject *gotk4_gbox_object_new(guintptr id) { Gotk4GboxObject *self = g_object_new(GOTK4_TYPE_GBOX_OBJECT, NULL); self->id = id; - - g_log_structured("Gotk4GboxObject", G_LOG_LEVEL_DEBUG, // - "GBOX_ID", self->id, // - "MESSAGE", "Created gbox object in gotk4_gbox_object_new"); - return self; }