1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

Fix double free in roster_process_pending_presence

This is taken care of now in the destructor _pendingPresence_free().
This commit is contained in:
Michael Vetter 2019-07-10 12:06:13 +02:00
parent 38edc1c325
commit a8b3de7016

View File

@ -706,7 +706,6 @@ roster_process_pending_presence(void)
for (iter = roster_pending_presence; iter != NULL; iter = iter->next) { for (iter = roster_pending_presence; iter != NULL; iter = iter->next) {
ProfPendingPresence *presence = iter->data; ProfPendingPresence *presence = iter->data;
roster_update_presence(presence->barejid, presence->resource, presence->last_activity); roster_update_presence(presence->barejid, presence->resource, presence->last_activity);
free(presence->barejid);
/* seems like resource isn't free on the calling side */ /* seems like resource isn't free on the calling side */
if (presence->last_activity) { if (presence->last_activity) {
g_date_time_unref(presence->last_activity); g_date_time_unref(presence->last_activity);