]> git.0d.be Git - empathy.git/blobdiff - libempathy-gtk/empathy-theme-adium.c
Merge branch 'fix-585601'
[empathy.git] / libempathy-gtk / empathy-theme-adium.c
index 1f1b3b06d906ce457a581b045588867d28001b70..aab1f6f3ddfc583600ed47c6a28fc9166c84a106 100644 (file)
@@ -564,6 +564,13 @@ theme_adium_clear (EmpathyChatView *view)
                                          priv->data->template_html,
                                          basedir_uri);
        g_free (basedir_uri);
+
+       /* Clear last contact to avoid trying to add a 'joined'
+        * message when we don't have an insertion point. */
+       if (priv->last_contact) {
+               g_object_unref (priv->last_contact);
+               priv->last_contact = NULL;
+       }
 }
 
 static gboolean