[gnome-control-center/gnome-42] applications: crash when switching between two apps
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gnome-42] applications: crash when switching between two apps
- Date: Fri, 27 May 2022 03:58:23 +0000 (UTC)
commit 099948e3ff07997dd518e150d68fa482d8adfa15
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 b97e9bf26..c9352c10b 100644
--- a/panels/applications/cc-applications-panel.c
+++ b/panels/applications/cc-applications-panel.c
@@ -833,7 +833,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]