Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-application.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@gnome.org>2010-05-09 22:27:26 (GMT)
committer Carlos Garcia Campos <carlosgc@gnome.org>2010-05-25 07:37:24 (GMT)
commitf480eea33f494d7e28ab82cb2cf6105861886c6a (patch)
treea03cde111d03b064c6f96c60c4d93caa1767009b /shell/ev-application.c
parenteb65999fbc7173f07731461c97e6be2a1d8467ce (diff)
[shell] Plug refcount leaks
Diffstat (limited to 'shell/ev-application.c')
-rw-r--r--shell/ev-application.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/shell/ev-application.c b/shell/ev-application.c
index f9ba626..136fbb6 100644
--- a/shell/ev-application.c
+++ b/shell/ev-application.c
@@ -341,7 +341,7 @@ ev_application_register_uri (EvApplication *application,
const gchar *search_string,
guint timestamp)
{
- GVariant *value;
+ GVariant *value, *value2;
const gchar *owner;
GVariantBuilder builder;
GError *error = NULL;
@@ -404,7 +404,7 @@ ev_application_register_uri (EvApplication *application,
g_variant_builder_add (&builder, "u", timestamp);
- value = g_dbus_connection_invoke_method_sync
+ value2 = g_dbus_connection_invoke_method_sync
(application->connection,
owner,
APPLICATION_DBUS_OBJECT_PATH,
@@ -415,12 +415,13 @@ ev_application_register_uri (EvApplication *application,
-1,
NULL,
&error);
- if (value == NULL) {
+ if (value2 == NULL) {
g_warning ("%s", error->message);
g_error_free (error);
}
g_variant_unref (value);
+ g_variant_unref (value2);
/* Do not continue opening this document */
return FALSE;