Commit ae9d3012 authored by Ronan's avatar Ronan
Browse files

fix(MainDb): do not use free on content

parent 12f0e6c1
......@@ -1226,9 +1226,9 @@ void MainDbPrivate::importLegacyHistory (DbSession &inDbSession) {
soci::use(creationTime), soci::use(state), soci::use(direction),
if (content != nullptr) {
if (content) {
insertContent(eventId, *content);
delete content;
insertChatRoomParticipant(chatRoomId, remoteSipAddressId, false);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment