summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2014-02-17 09:20:21 +0100
committerStefano Karapetsas <[email protected]>2014-02-17 09:20:21 +0100
commiteedcf34b50cbae2ce2f71a7688533c343b9a67e5 (patch)
tree6badc16045b860143578276624cfca86ea10cc40
parentb60e3bd911695f8dfa5f1e782ee2ff50c4483baa (diff)
downloadmate-desktop-eedcf34b50cbae2ce2f71a7688533c343b9a67e5.tar.bz2
mate-desktop-eedcf34b50cbae2ce2f71a7688533c343b9a67e5.tar.xz
libmate-desktop: Use same if in mate-desktop-utils
-rw-r--r--libmate-desktop/mate-desktop-utils.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libmate-desktop/mate-desktop-utils.c b/libmate-desktop/mate-desktop-utils.c
index 639d2af..985278f 100644
--- a/libmate-desktop/mate-desktop-utils.c
+++ b/libmate-desktop/mate-desktop-utils.c
@@ -199,10 +199,8 @@ mate_gdk_spawn_command_line_on_screen (GdkScreen *screen, const gchar *command,
gdk_app_launch_context_set_screen (context, screen);
res = g_app_info_launch (appinfo, NULL, G_APP_LAUNCH_CONTEXT (context), error);
g_object_unref (context);
- }
-
- if (appinfo != NULL)
g_object_unref (appinfo);
+ }
return res;
}