Browse Source

Merge remote-tracking branch 'Gordon-F/Gordon-F-delfix'

Lasse Öörni 9 years ago
parent
commit
4f1de66529
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) + ".");
     }
     }