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;
|
||||
}
|
||||
|
||||
AegisubLocale::~AegisubLocale() {
|
||||
delete locale;
|
||||
}
|
||||
|
||||
//////////////
|
||||
// Initialize
|
||||
|
|
|
@ -53,6 +53,7 @@ public:
|
|||
int curCode;
|
||||
|
||||
AegisubLocale();
|
||||
~AegisubLocale();
|
||||
void Init(int language);
|
||||
int PickLanguage();
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue