diff options
author | Lars Uebernickel <lars.uebernickel@canonical.com> | 2015-01-12 18:38:45 +0000 |
---|---|---|
committer | CI Train Bot <ci-train-bot@canonical.com> | 2015-01-12 18:38:45 +0000 |
commit | 9863e0613af0748041aa5c14dddb72f538084e2a (patch) | |
tree | 4b3e7daac6bd22ec04e97dcf6816a201910958d8 /src/im-desktop-menu.c | |
parent | 1baca6d1b2aa2864ba33d7cae165359b53d7ef75 (diff) | |
parent | 965863d504a9b2ed28809ed6b2864530315014ad (diff) | |
download | ayatana-indicator-messages-9863e0613af0748041aa5c14dddb72f538084e2a.tar.gz ayatana-indicator-messages-9863e0613af0748041aa5c14dddb72f538084e2a.tar.bz2 ayatana-indicator-messages-9863e0613af0748041aa5c14dddb72f538084e2a.zip |
desktop menu: don't warn when no default handler for a mime type is found Fixes: #1389725
Approved by: Sebastien Bacher
Diffstat (limited to 'src/im-desktop-menu.c')
-rw-r--r-- | src/im-desktop-menu.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/im-desktop-menu.c b/src/im-desktop-menu.c index 137e222..c762735 100644 --- a/src/im-desktop-menu.c +++ b/src/im-desktop-menu.c @@ -81,12 +81,15 @@ g_app_info_is_default_for_uri_scheme (GAppInfo *info, const gchar *uri_scheme) { GAppInfo *default_info; - gboolean is_default; + gboolean is_default = FALSE; default_info = g_app_info_get_default_for_uri_scheme (uri_scheme); - is_default = g_app_info_equal (info, default_info); + if (default_info) + { + is_default = g_app_info_equal (info, default_info); + g_object_unref (default_info); + } - g_object_unref (default_info); return is_default; } |