mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 15:36:17 +01:00
Don't ref a NULL pointer
This commit is contained in:
parent
f405f42115
commit
b9d919bd8f
@ -3526,7 +3526,7 @@ g_win32_app_info_new_from_app (GWin32AppInfoApplication *app,
|
||||
|
||||
new_info->supported_types[i] = NULL;
|
||||
|
||||
new_info->handler = g_object_ref (handler);
|
||||
new_info->handler = handler ? g_object_ref (handler) : NULL;
|
||||
|
||||
return G_APP_INFO (new_info);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user