]> www.fi.muni.cz Git - evince.git/commitdiff
[shell] Fix name watching
authorChristian Persch <chpe@gnome.org>
Wed, 12 May 2010 14:03:17 +0000 (16:03 +0200)
committerCarlos Garcia Campos <carlosgc@gnome.org>
Tue, 25 May 2010 07:38:30 +0000 (09:38 +0200)
cut-n-paste/totem-screensaver/totem-scrsaver.c
shell/ev-media-player-keys.c

index 30ea718fe5047760c4e610b368e43da3bc3d628e..bdff151e732bf14cfc7dc6b3666d13dcecf1c2c7 100644 (file)
@@ -210,6 +210,9 @@ screensaver_dbus_disappeared_cb (GDBusConnection *connection,
 {
         TotemScrsaver *scr = TOTEM_SCRSAVER (user_data);
 
+        if (scr->priv->connection == NULL)
+                return;
+
         g_assert (scr->priv->connection == connection);
         g_object_unref (scr->priv->connection);
         scr->priv->connection = NULL;
index b8489067a6f2a83b7d8361e8ae56c648b4a1af0a..da334b6cf14ccade8dcaff6eff8ae67ea053a5ec 100644 (file)
@@ -166,6 +166,9 @@ mediakeys_service_disappeared_cb (GDBusConnection *connection,
 {
         EvMediaPlayerKeys *keys = EV_MEDIA_PLAYER_KEYS (user_data);
 
+        if (keys->connection == NULL)
+                return;
+
         g_assert (keys->connection == connection);
 
         g_dbus_connection_signal_unsubscribe (connection, keys->subscription_id);