mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 15:03:39 +02:00
Don't ref a NULL pointer
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user