mirror of
https://github.com/odrling/Aegisub
synced 2025-04-11 22:56:02 +02:00
Fixed a memory leak in the auto4 ScriptFactory
Originally committed to SVN as r3044.
This commit is contained in:
parent
1b9f38747b
commit
9abcbe19b3
@ -736,6 +736,7 @@ namespace Automation4 {
|
||||
for (std::vector<ScriptFactory*>::iterator i = factories->begin(); i != factories->end(); ++i) {
|
||||
if (*i == factory) {
|
||||
factories->erase(i);
|
||||
if (factories->empty()) delete factories;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user