A fix for commit b274c72.
authorAndrej Kacian <ticho@claws-mail.org>
Sat, 10 Sep 2016 07:28:04 +0000 (09:28 +0200)
committerAndrej Kacian <ticho@claws-mail.org>
Sat, 10 Sep 2016 07:28:04 +0000 (09:28 +0200)
Whatever FeedItem's ->data is pointing to is being
freed in feed_item_free() already.

src/plugins/rssyl/parse822.c
src/plugins/rssyl/rssyl_add_item.c
src/plugins/rssyl/rssyl_deleted.c
src/plugins/rssyl/rssyl_update_comments.c

index c3cd109..2197542 100644 (file)
@@ -237,7 +237,6 @@ static void rssyl_flush_folder_func(gpointer data, gpointer user_data)
 
        if( ctx != NULL && ctx->path != NULL) {
                g_free(ctx->path);
-               g_free(ctx);
        }
        feed_item_free(item);
 }
index b280609..922ad4e 100644 (file)
@@ -363,7 +363,6 @@ void rssyl_add_item(RFolderItem *ritem, FeedItem *feed_item)
                }
 
                g_free(ctx->path);
-               g_free(ctx);
                feed_item_free(old_item);
                old_item = NULL;
        }
index f584356..ef2a5c1 100644 (file)
@@ -238,7 +238,6 @@ void rssyl_deleted_add(RFolderItem *ritem, gchar *path)
 
        RFeedCtx *ctx = (RFeedCtx *)fitem->data;
        g_free(ctx->path);
-       g_free(ctx);
        feed_item_free(fitem);
 }
 
index 8d05d6c..e552f4a 100644 (file)
@@ -132,7 +132,6 @@ void rssyl_update_comments(RFolderItem *ritem)
 
                                RFeedCtx *ctx = (RFeedCtx *)fi->data;
                                g_free(ctx->path);
-                               g_free(ctx);
                                feed_item_free(fi);
                        }