Added destructor -> no memory leaks

Originally committed to SVN as r59.
This commit is contained in:
Fredrik Mellbin 2006-02-02 22:20:49 +00:00
parent 5062ea6e31
commit e8d6eee1b0
2 changed files with 4 additions and 0 deletions

View File

@ -53,6 +53,9 @@ AegisubLocale::AegisubLocale () {
curCode = -1; curCode = -1;
} }
AegisubLocale::~AegisubLocale() {
delete locale;
}
////////////// //////////////
// Initialize // Initialize

View File

@ -53,6 +53,7 @@ public:
int curCode; int curCode;
AegisubLocale(); AegisubLocale();
~AegisubLocale();
void Init(int language); void Init(int language);
int PickLanguage(); int PickLanguage();
}; };