mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-28 16:49:20 +00:00
fix(MainDb): do not use free on content
This commit is contained in:
parent
12f0e6c1ed
commit
ae9d3012ef
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue