[sysprof/wip/gtk4-port: 67/125] raplaid: port to GTK 4




commit ff63633aadb236646f68a9ea425a65aa65ec30ed
Author: Christian Hergert <chergert redhat com>
Date:   Fri Oct 1 10:50:43 2021 -0700

    raplaid: port to GTK 4

 src/libsysprof-ui/sysprof-rapl-aid.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/libsysprof-ui/sysprof-rapl-aid.c b/src/libsysprof-ui/sysprof-rapl-aid.c
index c5d11e61..0102a1ef 100644
--- a/src/libsysprof-ui/sysprof-rapl-aid.c
+++ b/src/libsysprof-ui/sysprof-rapl-aid.c
@@ -227,7 +227,7 @@ sysprof_rapl_aid_present_finish (SysprofAid    *aid,
       if (found > 0)
         sysprof_display_add_group (present->display, energy);
       else
-        gtk_widget_destroy (GTK_WIDGET (energy));
+        g_object_unref (energy);
     }
 
   return counters != NULL;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]