[evince] [shell] Make sure we have a proxy before using it in ev-media-player-keys
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] [shell] Make sure we have a proxy before using it in ev-media-player-keys
- Date: Tue, 25 May 2010 10:38:47 +0000 (UTC)
commit 6f3e578c5f96e132587aeda27c341792621af14e
Author: Carlos Garcia Campos <carlosgc gnome org>
Date: Tue May 25 12:31:29 2010 +0200
[shell] Make sure we have a proxy before using it in ev-media-player-keys
shell/ev-media-player-keys.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/shell/ev-media-player-keys.c b/shell/ev-media-player-keys.c
index c8f3418..efc32dc 100644
--- a/shell/ev-media-player-keys.c
+++ b/shell/ev-media-player-keys.c
@@ -189,13 +189,13 @@ ev_media_player_keys_finalize (GObject *object)
{
EvMediaPlayerKeys *keys = EV_MEDIA_PLAYER_KEYS (object);
- ev_media_player_keys_release_keys (keys);
-
if (keys->watch_id > 0)
g_bus_unwatch_proxy (keys->watch_id);
- if (keys->proxy != NULL)
+ if (keys->proxy != NULL) {
+ ev_media_player_keys_release_keys (keys);
g_object_unref (keys->proxy);
+ }
G_OBJECT_CLASS (ev_media_player_keys_parent_class)->finalize (object);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]