Added destructor -> no memory leaks
Originally committed to SVN as r59.
This commit is contained in:
parent
5062ea6e31
commit
e8d6eee1b0
2 changed files with 4 additions and 0 deletions
|
@ -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 a new issue