projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1832964
)
gtkplacessidebar: Prevent calling g_object_unref on null
author
Fina Wilke
<code@felinira.net>
Mon, 14 Mar 2022 21:33:35 +0000
(22:33 +0100)
committer
Fina Wilke
<code@felinira.net>
Mon, 14 Mar 2022 21:33:35 +0000
(22:33 +0100)
g_object_unref would be called on a null end_icon when provider_account_status
is CLOUD_PROVIDERS_ACCOUNT_STATUS_IDLE
gtk/gtkplacessidebar.c
patch
|
blob
|
history
diff --git
a/gtk/gtkplacessidebar.c
b/gtk/gtkplacessidebar.c
index edc0620189fe78a6c549439956d83ea11dddc25e..60f07e4558699987f5824bb35ff26534b2b4f582 100644
(file)
--- a/
gtk/gtkplacessidebar.c
+++ b/
gtk/gtkplacessidebar.c
@@
-921,7
+921,10
@@
create_cloud_provider_account_row (GtkPlacesSidebar *sidebar,
g_free (tooltip);
g_free (mount_uri);
- g_object_unref (end_icon);
+ if (end_icon) {
+ g_object_unref (end_icon);
+ }
+
return TRUE;
}
else