Cleanup chats correctly

FossilOrigin-Name: 926e998d4538ddd0d601865073069728207a59a5cf69300c158be38e101c201f
This commit is contained in:
nekobit 2022-08-25 00:14:22 +00:00
parent d68d553759
commit 7390326d2c

View file

@ -70,7 +70,7 @@ void content_chats(PATH_ARGS)
// Cleanup
mastodont_storage_cleanup(&storage);
mstdnt_cleanup_chats(chats, chats_len);
mstdnt_cleanup_chats(chats);
Safefree(dup);
}
@ -125,7 +125,6 @@ void content_chat_view(PATH_ARGS)
mastodont_storage_cleanup(&storage);
mastodont_storage_cleanup(&storage_chat);
mstdnt_cleanup_chats(chats);
mstdnt_cleanup_messages(messages);
Safefree(dup);
}