ide: Fixed leaking of DirectoriesBox in GlobalSettingsDialog
authorJerome St-Louis <jerome@ecere.com>
Fri, 10 Jun 2011 08:26:21 +0000 (04:26 -0400)
committerJerome St-Louis <jerome@ecere.com>
Fri, 10 Jun 2011 08:26:21 +0000 (04:26 -0400)
ide/src/dialogs/GlobalSettingsDialog.ec

index e21d91f..ac027c9 100644 (file)
@@ -517,6 +517,14 @@ class CompilerDirectoriesTab : CompilersSubTab
    Button dirTypeTglBtn[DirTypes];
    DirectoriesBox dirs[DirTypes], currentDirs;
 
+   ~CompilerDirectoriesTab()
+   {
+      DirTypes c;
+      for(c = 0; c < DirTypes::enumSize; c++)
+      {
+         delete dirs[c];
+      }
+   }
    CompilerDirectoriesTab()
    {
       DirTypes c;