]> www.fi.muni.cz Git - evince.git/blobdiff - cut-n-paste/totem-screensaver/totem-scrsaver.c
[shell] Fix name watching
[evince.git] / cut-n-paste / totem-screensaver / totem-scrsaver.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;