mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-03 14:42:10 +01:00
Don't try to ref NULL pointer in g_desktop_app_info_dup()
Fixes bug #573246.
This commit is contained in:
parent
d89cc0d7cb
commit
2fff3026ef
@ -417,6 +417,7 @@ g_desktop_app_info_dup (GAppInfo *appinfo)
|
|||||||
new_info->comment = g_strdup (info->comment);
|
new_info->comment = g_strdup (info->comment);
|
||||||
new_info->nodisplay = info->nodisplay;
|
new_info->nodisplay = info->nodisplay;
|
||||||
new_info->icon_name = g_strdup (info->icon_name);
|
new_info->icon_name = g_strdup (info->icon_name);
|
||||||
|
if (info->icon)
|
||||||
new_info->icon = g_object_ref (info->icon);
|
new_info->icon = g_object_ref (info->icon);
|
||||||
new_info->only_show_in = g_strdupv (info->only_show_in);
|
new_info->only_show_in = g_strdupv (info->only_show_in);
|
||||||
new_info->not_show_in = g_strdupv (info->not_show_in);
|
new_info->not_show_in = g_strdupv (info->not_show_in);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user