src/protocols/jabber/buddy.c

changeset 11532
b069bbab16be
parent 11531
63c017cfd8d2
child 11533
f58436975d44
equal deleted inserted replaced
11531:63c017cfd8d2 11532:b069bbab16be
589 JabberBuddy *jb; 589 JabberBuddy *jb;
590 JabberBuddyResource *jbr; 590 JabberBuddyResource *jbr;
591 GString *info_text; 591 GString *info_text;
592 char *resource_name; 592 char *resource_name;
593 char *bare_jid; 593 char *bare_jid;
594 char *title;
595 char *text; 594 char *text;
596 xmlnode *vcard; 595 xmlnode *vcard;
597 GaimBuddy *b; 596 GaimBuddy *b;
598 GSList *imgids = NULL; 597 GSList *imgids = NULL;
599 598
848 } 847 }
849 g_free(text); 848 g_free(text);
850 } 849 }
851 } 850 }
852 851
853 title = g_strdup_printf("User info for %s", from);
854
855 text = gaim_strdup_withhtml(info_text->str); 852 text = gaim_strdup_withhtml(info_text->str);
856 853
857 gaim_notify_userinfo(js->gc, from, _("Jabber Profile"), 854 gaim_notify_userinfo(js->gc, from, _("Jabber Profile"),
858 NULL, text, NULL, NULL); 855 NULL, text, NULL, NULL);
859 856
860 while(imgids) { 857 while(imgids) {
861 gaim_imgstore_unref(GPOINTER_TO_INT(imgids->data)); 858 gaim_imgstore_unref(GPOINTER_TO_INT(imgids->data));
862 imgids = g_slist_delete_link(imgids, imgids); 859 imgids = g_slist_delete_link(imgids, imgids);
863 } 860 }
864 g_free(title);
865 g_string_free(info_text, TRUE); 861 g_string_free(info_text, TRUE);
866 g_free(text); 862 g_free(text);
867 g_free(bare_jid); 863 g_free(bare_jid);
868 } 864 }
869 865

mercurial