X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=shell%2Fmain.c;h=91a62d258b5299519f59bf293c45bf281151233c;hb=f222d19fbbd936de7f403eb29666b41e3447b48d;hp=3a38986bb813625dd515df683ffedabb6d4dbb9c;hpb=67297a0108ba18a69972c98ee1771c3dad41d55b;p=evince.git diff --git a/shell/main.c b/shell/main.c index 3a38986b..91a62d25 100644 --- a/shell/main.c +++ b/shell/main.c @@ -158,6 +158,8 @@ load_files_remote (const char **files) if (!dbus_g_proxy_end_call (remote_object, call, &error, DBUS_TYPE_INVALID)) { g_warning (error->message); g_clear_error (&error); + g_object_unref (remote_object); + dbus_g_connection_unref (connection); return FALSE; } #elif DBUS_VERSION == 34 @@ -168,6 +170,8 @@ load_files_remote (const char **files) if (!dbus_g_proxy_end_call (remote_object, call, &error, G_TYPE_INVALID)) { g_warning (error->message); g_clear_error (&error); + g_object_unref (remote_object); + dbus_g_connection_unref (connection); return FALSE; } #else @@ -177,9 +181,14 @@ load_files_remote (const char **files) G_TYPE_INVALID)) { g_warning (error->message); g_clear_error (&error); + g_object_unref (remote_object); + dbus_g_connection_unref (connection); return FALSE; } #endif + g_object_unref (remote_object); + dbus_g_connection_unref (connection); + return TRUE; } @@ -232,6 +241,9 @@ load_files_remote (const char **files) result = TRUE; } + g_object_unref (remote_object); + dbus_g_connection_unref (connection); + gdk_notify_startup_complete (); return result;