From b9d919bd8f95e9eac7144ec7c413256c3f5cfc56 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=D0=A0=D1=83=D1=81=D0=BB=D0=B0=D0=BD=20=D0=98=D0=B6=D0=B1?= =?utf8?q?=D1=83=D0=BB=D0=B0=D1=82=D0=BE=D0=B2?= Date: Wed, 24 Jun 2015 10:07:15 +0000 Subject: [PATCH] Don't ref a NULL pointer --- gio/gwin32appinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gio/gwin32appinfo.c b/gio/gwin32appinfo.c index 782e153..a883b24 100644 --- a/gio/gwin32appinfo.c +++ b/gio/gwin32appinfo.c @@ -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); } -- 2.7.4