From 64c7bcbab24a3db839e4d0b175e3e2c38798d99a Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Thu, 30 Sep 2021 19:16:39 -0700 Subject: [PATCH] batteryaid: port to GTK 4 --- src/libsysprof-ui/sysprof-battery-aid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsysprof-ui/sysprof-battery-aid.c b/src/libsysprof-ui/sysprof-battery-aid.c index 8bef1979..6adca861 100644 --- a/src/libsysprof-ui/sysprof-battery-aid.c +++ b/src/libsysprof-ui/sysprof-battery-aid.c @@ -218,7 +218,7 @@ sysprof_battery_aid_present_finish (SysprofAid *aid, if (found > 0) sysprof_display_add_group (present->display, group); else - gtk_widget_destroy (GTK_WIDGET (group)); + g_object_unref (group); } return counters != NULL;