Browse Source

vision: Fix use of wrong delete operator in ARToolKit code

rdb 3 years ago
parent
commit
1f9f6a618f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      panda/src/vision/arToolKit.cxx

+ 1 - 1
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;
   }