mirror of https://github.com/odrling/Aegisub
Added destructor -> no memory leaks
Originally committed to SVN as r59.
This commit is contained in:
parent
5062ea6e31
commit
e8d6eee1b0
|
@ -53,6 +53,9 @@ AegisubLocale::AegisubLocale () {
|
||||||
curCode = -1;
|
curCode = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
AegisubLocale::~AegisubLocale() {
|
||||||
|
delete locale;
|
||||||
|
}
|
||||||
|
|
||||||
//////////////
|
//////////////
|
||||||
// Initialize
|
// Initialize
|
||||||
|
|
|
@ -53,6 +53,7 @@ public:
|
||||||
int curCode;
|
int curCode;
|
||||||
|
|
||||||
AegisubLocale();
|
AegisubLocale();
|
||||||
|
~AegisubLocale();
|
||||||
void Init(int language);
|
void Init(int language);
|
||||||
int PickLanguage();
|
int PickLanguage();
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue