Skip to content

Instantly share code, notes, and snippets.

@Quipyowert2
Created October 10, 2018 05:19
Show Gist options
  • Save Quipyowert2/9b3517706759173c4826bcac093ffbb3 to your computer and use it in GitHub Desktop.
Save Quipyowert2/9b3517706759173c4826bcac093ffbb3 to your computer and use it in GitHub Desktop.
Fix mismatched free delete in Zaz 'game.cpp' sourceforge.net/p/zaz
diff --git a/src/game.cpp b/src/game.cpp
index 89bb76f..5004bae 100755
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -265,7 +265,7 @@ Game::~Game()
delete ballPaths[b];
}
- delete ballPaths;
+ delete[] ballPaths;
if (ownTextures)
glDeleteTextures(14, ballText);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment