]> git.sesse.net Git - vlc/commitdiff
skins2(Linux): delete needs [] in C++ for arrays
authorErwan Tulou <erwan10@videolan.org>
Tue, 18 May 2010 16:49:52 +0000 (18:49 +0200)
committerErwan Tulou <erwan10@videolan.org>
Tue, 18 May 2010 20:04:18 +0000 (22:04 +0200)
modules/gui/skins2/x11/x11_window.cpp

index 84b24497381c5a40700dac6078599d0d2dcd6b39..4b2643376e9882a32d7b673745c162c790678b30 100644 (file)
@@ -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();