libpurple/protocols/sametime/sametime.c

changeset 33661
2ebcb105e606
parent 33052
df92c3d93904
child 33760
66611fba7197
child 34108
7a07b6857540
equal deleted inserted replaced
33660:632df42123db 33661:2ebcb105e606
2778 /* look up the content id */ 2778 /* look up the content id */
2779 cid = (char *) purple_mime_part_get_field(part, "Content-ID"); 2779 cid = (char *) purple_mime_part_get_field(part, "Content-ID");
2780 cid = make_cid(cid); 2780 cid = make_cid(cid);
2781 2781
2782 /* add image to the purple image store */ 2782 /* add image to the purple image store */
2783 img = purple_imgstore_add_with_id(d_dat, d_len, cid); 2783 img = purple_imgstore_new_with_id(d_dat, d_len, cid);
2784 2784
2785 /* map the cid to the image store identifier */ 2785 /* map the cid to the image store identifier */
2786 g_hash_table_insert(img_by_cid, cid, GINT_TO_POINTER(img)); 2786 g_hash_table_insert(img_by_cid, cid, GINT_TO_POINTER(img));
2787 2787
2788 /* recall the image for dereferencing later */ 2788 /* recall the image for dereferencing later */

mercurial