fix(MainDb): do not use free on content

This commit is contained in:
Ronan Abhamon 2018-03-07 13:44:39 +01:00
parent 12f0e6c1ed
commit ae9d3012ef

View file

@ -1226,9 +1226,9 @@ void MainDbPrivate::importLegacyHistory (DbSession &inDbSession) {
soci::use(creationTime), soci::use(state), soci::use(direction),
soci::use(isSecured);
if (content != nullptr) {
if (content) {
insertContent(eventId, *content);
free(content);
delete content;
}
insertChatRoomParticipant(chatRoomId, remoteSipAddressId, false);