[vlc-devel] commit: Use delete[] to delete an array. ( Rémi Duraffort )

git version control git at videolan.org
Tue Aug 19 22:56:48 CEST 2008


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Tue Aug 19 22:58:59 2008 +0200| [f99b51c5b9d5757028c21d94ca1a876dab18e330] | committer: Rémi Duraffort 

Use delete[] to delete an array.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f99b51c5b9d5757028c21d94ca1a876dab18e330
---

 projects/mozilla/control/nporuntime.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/projects/mozilla/control/nporuntime.h b/projects/mozilla/control/nporuntime.h
index 2f6c91b..638ce7b 100644
--- a/projects/mozilla/control/nporuntime.h
+++ b/projects/mozilla/control/nporuntime.h
@@ -315,8 +315,8 @@ RuntimeNPClass<T>::RuntimeNPClass()
 template<class T>
 RuntimeNPClass<T>::~RuntimeNPClass()
 {
-    delete propertyIdentifiers;
-    delete methodIdentifiers;
+    delete[] propertyIdentifiers;
+    delete[] methodIdentifiers;
 }
 
 template<class T>




More information about the vlc-devel mailing list