projects
/
claws.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a1d8f05
)
Fix use after free
author
Colin Leroy
<colin@colino.net>
Mon, 17 Nov 2014 08:24:58 +0000
(09:24 +0100)
committer
Colin Leroy
<colin@colino.net>
Mon, 17 Nov 2014 08:24:58 +0000
(09:24 +0100)
src/msgcache.c
patch
|
blob
|
history
diff --git
a/src/msgcache.c
b/src/msgcache.c
index cb2afcc7f6968ab6a78620be3b3096038856197b..82480ed9c10b7d02babd720098ac9633860599e9 100644
(file)
--- a/
src/msgcache.c
+++ b/
src/msgcache.c
@@
-187,10
+187,12
@@
void msgcache_remove_msg(MsgCache *cache, guint msgnum)
if(msginfo->msgid)
g_hash_table_remove(cache->msgid_table, msginfo->msgid);
g_hash_table_remove(cache->msgnum_table, &msginfo->msgnum);
if(msginfo->msgid)
g_hash_table_remove(cache->msgid_table, msginfo->msgid);
g_hash_table_remove(cache->msgnum_table, &msginfo->msgnum);
+
+ msginfo->folder->cache_dirty = TRUE;
+
procmsg_msginfo_free(msginfo);
cache->last_access = time(NULL);
procmsg_msginfo_free(msginfo);
cache->last_access = time(NULL);
- msginfo->folder->cache_dirty = TRUE;
debug_print("Cache size: %d messages, %u bytes\n", g_hash_table_size(cache->msgnum_table), cache->memusage);
}
debug_print("Cache size: %d messages, %u bytes\n", g_hash_table_size(cache->msgnum_table), cache->memusage);
}