diff --git a/src/input.cpp b/src/input.cpp index 31aef100..f0702755 100644 --- a/src/input.cpp +++ b/src/input.cpp @@ -330,8 +330,8 @@ struct InputPrivate ~InputPrivate() { - delete states; - delete statesOld; + delete[] states; + delete[] statesOld; } inline ButtonState &getStateCheck(int code)