- fixed more memory leaks found in texture readers

This commit is contained in:
Mark Vejvoda
2010-09-07 21:53:45 +00:00
parent 958184e018
commit 4ed2e4b013
2 changed files with 10 additions and 5 deletions

View File

@@ -53,9 +53,7 @@ static const int tgaUncompressedBw= 3;
/**Get Extension array, initialised*/
static inline const string* getExtensionStrings() {
static string * extensions = new string[2];
extensions[0] = "tga";
extensions[1] = "";
static const string extensions[] = {"tga", ""};
return extensions;
}