mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-27 15:25:54 -04:00
vision: Fix use of wrong delete operator in ARToolKit code
This commit is contained in:
parent
09f8634433
commit
1f9f6a618f
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user