[vlc-commits] commit: skins2(Linux): delete needs [] in C++ for arrays (Erwan Tulou )

git at videolan.org git at videolan.org
Tue May 18 22:07:29 CEST 2010


vlc | branch: master | Erwan Tulou <erwan10 at videolan.org> | Tue May 18 18:49:52 2010 +0200| [d4d14518060b66ed4a56630e79b020e680c21cfe] | committer: Erwan Tulou 

skins2(Linux): delete needs [] in C++ for arrays

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

 modules/gui/skins2/x11/x11_window.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/gui/skins2/x11/x11_window.cpp b/modules/gui/skins2/x11/x11_window.cpp
index 84b2449..4b26433 100644
--- a/modules/gui/skins2/x11/x11_window.cpp
+++ b/modules/gui/skins2/x11/x11_window.cpp
@@ -181,7 +181,7 @@ X11Window::X11Window( intf_thread_t *pIntf, GenericWindow &rWindow,
         textprop.nitems = strlen( hostname );
         XSetWMClientMachine( XDISPLAY, m_wnd, &textprop);
     }
-    delete hostname;
+    delete[] hostname;
 
     // initialize EWMH pid
     pid_t pid = getpid();



More information about the vlc-commits mailing list