diff --git a/panda/src/vision/arToolKit.cxx b/panda/src/vision/arToolKit.cxx index 4208ba6eee..ed7d019680 100644 --- a/panda/src/vision/arToolKit.cxx +++ b/panda/src/vision/arToolKit.cxx @@ -423,7 +423,7 @@ analyze(Texture *tex, bool do_flip_texture) { if (arDetectMarker(data, _threshold * 256, &marker_info, &marker_num) < 0) { vision_cat.error() << "ARToolKit detection error.\n"; - delete data; + delete[] data; return; }