Sfoglia il codice sorgente

vision: Fix another use of wrong delete operator in ARToolKit code

rdb 2 anni fa
parent
commit
ef58255abd
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      panda/src/vision/arToolKit.cxx

+ 1 - 1
panda/src/vision/arToolKit.cxx

@@ -475,7 +475,7 @@ analyze(Texture *tex, bool do_flip_texture) {
     }
     }
   }
   }
 
 
-  delete data;
+  delete[] data;
 }
 }
 
 
 #endif // HAVE_ARTOOLKIT
 #endif // HAVE_ARTOOLKIT