Permalink
Browse files

match new[] with delete[] instead of delete

  • Loading branch information...
Mike
Mike committed Jul 18, 2012
1 parent 87df844 commit c63ec99baefac848bd1ac27ecf061bded1a4ff74
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 c63ec99

Please sign in to comment.