From 1f9f6a618ffdb4e2c253b6327b82f467a5d4dd5d Mon Sep 17 00:00:00 2001 From: rdb Date: Mon, 21 Nov 2022 18:33:35 +0100 Subject: [PATCH] vision: Fix use of wrong delete operator in ARToolKit code --- panda/src/vision/arToolKit.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }