projects
/
claws.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
fbb619d
)
Fix memory leak when freeing RSSyl's FeedItem struct.
author
Andrej Kacian
<ticho@claws-mail.org>
Fri, 9 Sep 2016 22:07:01 +0000
(
00:07
+0200)
committer
Andrej Kacian
<ticho@claws-mail.org>
Fri, 9 Sep 2016 22:07:01 +0000
(
00:07
+0200)
src/plugins/rssyl/parse822.c
patch
|
blob
|
history
src/plugins/rssyl/rssyl_add_item.c
patch
|
blob
|
history
src/plugins/rssyl/rssyl_deleted.c
patch
|
blob
|
history
src/plugins/rssyl/rssyl_update_comments.c
patch
|
blob
|
history
diff --git
a/src/plugins/rssyl/parse822.c
b/src/plugins/rssyl/parse822.c
index ca8b8420db59fc617fd058f60d40d26c1944fc53..c3cd109630dbb086ea1685feec401fb94e0be5ec 100644
(file)
--- a/
src/plugins/rssyl/parse822.c
+++ b/
src/plugins/rssyl/parse822.c
@@
-235,8
+235,10
@@
static void rssyl_flush_folder_func(gpointer data, gpointer user_data)
FeedItem *item = (FeedItem *)data;
RFeedCtx *ctx = (RFeedCtx *)item->data;
- if( ctx != NULL && ctx->path != NULL)
+ if( ctx != NULL && ctx->path != NULL)
{
g_free(ctx->path);
+ g_free(ctx);
+ }
feed_item_free(item);
}
diff --git
a/src/plugins/rssyl/rssyl_add_item.c
b/src/plugins/rssyl/rssyl_add_item.c
index 922ad4eadec0995eb81b12f67c782b0ec78ba5ee..b280609a72b3cfb97c451c24b74824f8d6b60d23 100644
(file)
--- a/
src/plugins/rssyl/rssyl_add_item.c
+++ b/
src/plugins/rssyl/rssyl_add_item.c
@@
-363,6
+363,7
@@
void rssyl_add_item(RFolderItem *ritem, FeedItem *feed_item)
}
g_free(ctx->path);
+ g_free(ctx);
feed_item_free(old_item);
old_item = NULL;
}
diff --git
a/src/plugins/rssyl/rssyl_deleted.c
b/src/plugins/rssyl/rssyl_deleted.c
index 7a4aabebf55bc95608664ecab6ca53b846084e9f..f58435605a900749f94966996dbf554be202fae9 100644
(file)
--- a/
src/plugins/rssyl/rssyl_deleted.c
+++ b/
src/plugins/rssyl/rssyl_deleted.c
@@
-235,6
+235,10
@@
void rssyl_deleted_add(RFolderItem *ritem, gchar *path)
g_free(deleted_file);
rssyl_deleted_free(deleted_items);
+
+ RFeedCtx *ctx = (RFeedCtx *)fitem->data;
+ g_free(ctx->path);
+ g_free(ctx);
feed_item_free(fitem);
}
diff --git
a/src/plugins/rssyl/rssyl_update_comments.c
b/src/plugins/rssyl/rssyl_update_comments.c
index c6096190866993472cbaec103014c7d645935490..8d05d6c7a7f4ff69be948e57641fbcbe8952f5f0 100644
(file)
--- a/
src/plugins/rssyl/rssyl_update_comments.c
+++ b/
src/plugins/rssyl/rssyl_update_comments.c
@@
-130,6
+130,9
@@
void rssyl_update_comments(RFolderItem *ritem)
STATUSBAR_POP(mainwin);
+ RFeedCtx *ctx = (RFeedCtx *)fi->data;
+ g_free(ctx->path);
+ g_free(ctx);
feed_item_free(fi);
}