Permalink
Browse files

match new[] with delete[] instead of delete

  • Loading branch information...
1 parent 7503521 commit a65da103883014d15dea932162c3b2a7646bc729 Mike committed Jul 19, 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 a65da10

Please sign in to comment.