mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 08:15:18 -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) {
|
if (arDetectMarker(data, _threshold * 256, &marker_info, &marker_num) < 0) {
|
||||||
vision_cat.error() << "ARToolKit detection error.\n";
|
vision_cat.error() << "ARToolKit detection error.\n";
|
||||||
delete data;
|
delete[] data;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user