Fix a memory corruption bug in RSSyl's feed_item_copy()
[claws.git] / src / plugins / rssyl / libfeed / feeditem.c
index 340cbf55f2efe4b39749de9135ff8ca04046dbf7..8d9faaa07a12b241b10266aa6ad092fbfc7eef10 100644 (file)
@@ -344,7 +344,7 @@ FeedItem *feed_item_copy(FeedItem *item)
        nitem->comments_url = g_strdup(item->comments_url);
        nitem->parent_id = g_strdup(item->parent_id);
 
-       nitem->enclosure = g_memdup(item->enclosure, sizeof(FeedItemEnclosure));
+       nitem->enclosure = feed_item_enclosure_copy(item->enclosure);
 
        nitem->date_published = item->date_published;
        nitem->date_modified = item->date_modified;