Permalink
Browse files

match new[] with delete[] instead of delete

  • Loading branch information...
1 parent c34f35b commit 9cd1dc1a522a75225e4a0a24067671b611f26235 Mike committed Jul 18, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 xbmc/network/websocket/WebSocketV8.cpp
@@ -185,7 +185,7 @@ const CWebSocketFrame* CWebSocketV8::close(WebSocketCloseReason reason /* = WebS
m_state = WebSocketStateClosed;
CWebSocketFrame* frame = new CWebSocketFrame(WebSocketConnectionClose, data, length);
- delete data;
+ delete[] data;
return frame;
}

0 comments on commit 9cd1dc1

Please sign in to comment.