Browse Source

fix delete in SpritePacker.cpp

Igor 9 years ago
parent
commit
c72ea82b5f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/Tools/SpritePacker/SpritePacker.cpp

+ 1 - 1
Source/Tools/SpritePacker/SpritePacker.cpp

@@ -327,7 +327,7 @@ void Run(Vector<String>& arguments)
                 packedHeight = size.y_;
                 packedHeight = size.y_;
             }
             }
         }
         }
-        delete packerRects;
+        delete[] packerRects;
         if (!success)
         if (!success)
             ErrorExit("Could not allocate for all images.  The max sprite sheet texture size is " + String(MAX_TEXTURE_SIZE) + "x" + String(MAX_TEXTURE_SIZE) + ".");
             ErrorExit("Could not allocate for all images.  The max sprite sheet texture size is " + String(MAX_TEXTURE_SIZE) + "x" + String(MAX_TEXTURE_SIZE) + ".");
     }
     }