1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-09-22 19:45:54 -04:00

db: Fix memleaks

This commit is contained in:
Michael Vetter 2020-04-06 16:04:34 +02:00
parent 1afb708533
commit 5862e5b159
2 changed files with 2 additions and 2 deletions

View File

@ -315,6 +315,7 @@ log_database_get_previous_chat(const gchar *const contact_barejid)
history = g_slist_append(history, msg); history = g_slist_append(history, msg);
} }
sqlite3_finalize(stmt); sqlite3_finalize(stmt);
free(query);
return history; return history;
} }

View File

@ -491,8 +491,7 @@ _chatwin_history(ProfChatWin *chatwin, const char *const contact_barejid)
} }
chatwin->history_shown = TRUE; chatwin->history_shown = TRUE;
//TODO: message_free g_slist_free_full(history, (GDestroyNotify)message_free);
g_slist_free_full(history, free);
} }
} }