diff options
author | Carlos Garcia Campos <carlosgc@gnome.org> | 2006-05-09 18:00:47 (GMT) |
---|---|---|
committer | Carlos Garcia Campos <carlosgc@src.gnome.org> | 2006-05-09 18:00:47 (GMT) |
commit | 88ae241f9ed612041aa97fb0027d95169f89a026 (patch) | |
tree | a9188ca9231e270e9a37e8d84cd86ba695fc5909 /shell/main.c | |
parent | 9341f430889ed826f8b326be923af9807d4133ee (diff) |
Fix some memory leaks.
2006-05-09 Carlos Garcia Campos <carlosgc@gnome.org>
* pdf/ev-poppler.cc:
* shell/ev-application.[ch]:
* shell/main.c:
Fix some memory leaks.
Diffstat (limited to 'shell/main.c')
-rw-r--r-- | shell/main.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/shell/main.c b/shell/main.c index 3a38986..91a62d2 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; |