mirror of https://github.com/odrling/Aegisub
Actually delete the lines in AssFile's destructor
This commit is contained in:
parent
bfc7f56e20
commit
40a0d8b2f7
|
@ -59,7 +59,10 @@ namespace std {
|
|||
AssFile::~AssFile() {
|
||||
auto copy = new EntryList;
|
||||
copy->swap(Line);
|
||||
agi::dispatch::Background().Async([=]{ delete copy; });
|
||||
agi::dispatch::Background().Async([=]{
|
||||
copy->clear_and_dispose([](AssEntry *e) { delete e; });
|
||||
delete copy;
|
||||
});
|
||||
}
|
||||
|
||||
void AssFile::LoadDefault(bool defline) {
|
||||
|
|
Loading…
Reference in New Issue