forked from mia/Aegisub
Fixed a memory leak that would occur when using the visual typesetting tools
Originally committed to SVN as r3041.
This commit is contained in:
parent
816f77e192
commit
bc3b986df7
1 changed files with 1 additions and 0 deletions
|
@ -1255,6 +1255,7 @@ void SubsEditBox::SetOverride (wxString tagname,wxString preValue,int forcePos,b
|
||||||
wxString name = override->Tags.at(i)->Name;
|
wxString name = override->Tags.at(i)->Name;
|
||||||
if (insertTags.Index(name) != wxNOT_FOUND || removeTag == name) {
|
if (insertTags.Index(name) != wxNOT_FOUND || removeTag == name) {
|
||||||
shift -= override->Tags.at(i)->ToString().Length();
|
shift -= override->Tags.at(i)->ToString().Length();
|
||||||
|
delete override->Tags.at(i);
|
||||||
override->Tags.erase(override->Tags.begin() + i);
|
override->Tags.erase(override->Tags.begin() + i);
|
||||||
i--;
|
i--;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue