Don't ref a NULL pointer

This commit is contained in:
Руслан Ижбулатов 2015-06-24 10:07:15 +00:00
parent f405f42115
commit b9d919bd8f

View File

@ -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);
}