mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -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:
parent
38edc1c325
commit
a8b3de7016
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user