[gnome-control-center] applications: crash when switching between two apps



commit 1523ab6c6bcd06331effef6f8af163e8c942221c
Author: lsnow <wuwoyi gmail com>
Date:   Wed May 11 12:37:38 2022 +0800

    applications: crash when switching between two apps
    
    The GIcon returned by g_app_info_get_icon() does
    not need to be freed.
    
    See: https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1817

 panels/applications/cc-applications-panel.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/panels/applications/cc-applications-panel.c b/panels/applications/cc-applications-panel.c
index 6b1e3935d..dfa9ef184 100644
--- a/panels/applications/cc-applications-panel.c
+++ b/panels/applications/cc-applications-panel.c
@@ -846,7 +846,7 @@ static void
 update_header_section (CcApplicationsPanel *self,
                        GAppInfo            *info)
 {
-  g_autoptr(GIcon) icon = NULL;
+  GIcon *icon;
 
   icon = g_app_info_get_icon (info);
   gtk_image_set_from_gicon (self->app_icon_image, icon);


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