~ubuntu-branches/ubuntu/oneiric/empathy/oneiric-security

« back to all changes in this revision

Viewing changes to libempathy-gtk/empathy-individual-menu.c

  • Committer: Bazaar Package Importer
  • Author(s): Ken VanDine
  • Date: 2011-08-22 14:16:36 UTC
  • mfrom: (1.1.75 upstream)
  • Revision ID: james.westby@ubuntu.com-20110822141636-iiju0fvx1f9sl3oz
Tags: 3.1.5.1-1ubuntu1
* New upstream version
  - crashed with SIGSEGV in dbus_connection_dispatch (LP: #829826)

Show diffs side-by-side

added added

removed removed

Lines of Context:
127
127
        goto while_finish;
128
128
 
129
129
      tp_contact = tpf_persona_get_contact (persona);
 
130
      if (tp_contact == NULL)
 
131
        goto while_finish;
 
132
 
130
133
      contact = empathy_contact_dup_from_tp_contact (tp_contact);
131
134
 
132
135
      store = folks_persona_get_store (FOLKS_PERSONA (persona));
1038
1041
          if (empathy_folks_persona_is_interesting (FOLKS_PERSONA (persona)))
1039
1042
            {
1040
1043
              tp_contact = tpf_persona_get_contact (persona);
1041
 
              contact = empathy_contact_dup_from_tp_contact (tp_contact);
1042
 
 
1043
 
              rooms = empathy_chatroom_manager_get_chatrooms (mgr,
1044
 
                  empathy_contact_get_account (contact));
1045
 
 
1046
 
              if (g_list_find (rooms, data->chatroom) == NULL)
1047
 
                g_clear_object (&contact);
1048
 
 
1049
 
              /* if contact != NULL here, we've found our match */
1050
 
 
1051
 
              g_list_free (rooms);
 
1044
              if (tp_contact != NULL)
 
1045
                {
 
1046
                  contact = empathy_contact_dup_from_tp_contact (tp_contact);
 
1047
 
 
1048
                  rooms = empathy_chatroom_manager_get_chatrooms (mgr,
 
1049
                      empathy_contact_get_account (contact));
 
1050
 
 
1051
                  if (g_list_find (rooms, data->chatroom) == NULL)
 
1052
                    g_clear_object (&contact);
 
1053
 
 
1054
                  /* if contact != NULL here, we've found our match */
 
1055
 
 
1056
                  g_list_free (rooms);
 
1057
                }
1052
1058
            }
1053
1059
          g_clear_object (&persona);
1054
1060
        }
1143
1149
          if (empathy_folks_persona_is_interesting (FOLKS_PERSONA (persona)))
1144
1150
            {
1145
1151
              tp_contact = tpf_persona_get_contact (persona);
1146
 
              contact_cur = empathy_contact_dup_from_tp_contact (tp_contact);
1147
 
 
1148
 
              rooms_cur = empathy_chatroom_manager_get_chatrooms (mgr,
1149
 
                  empathy_contact_get_account (contact_cur));
1150
 
              rooms = g_list_concat (rooms, rooms_cur);
1151
 
 
1152
 
              g_object_unref (contact_cur);
 
1152
              if (tp_contact != NULL)
 
1153
                {
 
1154
                  contact_cur = empathy_contact_dup_from_tp_contact (
 
1155
                      tp_contact);
 
1156
 
 
1157
                  rooms_cur = empathy_chatroom_manager_get_chatrooms (mgr,
 
1158
                      empathy_contact_get_account (contact_cur));
 
1159
                  rooms = g_list_concat (rooms, rooms_cur);
 
1160
 
 
1161
                  g_object_unref (contact_cur);
 
1162
                }
1153
1163
            }
1154
1164
          g_clear_object (&persona);
1155
1165
        }