[totem] lib: Fix refcount when trying the old Inhibit method
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] lib: Fix refcount when trying the old Inhibit method
- Date: Thu, 10 Mar 2011 14:52:06 +0000 (UTC)
commit ea224952e648bfa80025798fc597c182524e74b0
Author: Bastien Nocera <hadess hadess net>
Date: Thu Mar 10 11:54:40 2011 +0000
lib: Fix refcount when trying the old Inhibit method
lib/totem-scrsaver.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/lib/totem-scrsaver.c b/lib/totem-scrsaver.c
index 008dffb..d928c45 100644
--- a/lib/totem-scrsaver.c
+++ b/lib/totem-scrsaver.c
@@ -113,9 +113,9 @@ on_inhibit_cb (GObject *source_object,
scr);
} else {
g_warning ("Problem inhibiting the screensaver: %s", error->message);
+ g_object_unref (scr);
}
g_error_free (error);
- g_object_unref (scr);
return;
}
@@ -156,9 +156,9 @@ on_uninhibit_cb (GObject *source_object,
scr);
} else {
g_warning ("Problem uninhibiting the screensaver: %s", error->message);
+ g_object_unref (scr);
}
g_error_free (error);
- g_object_unref (scr);
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]