From 6825f30b665952864dbe35fe8329a0e4c264d4b8 Mon Sep 17 00:00:00 2001 From: erik Date: Wed, 10 Jan 2007 17:31:08 +0000 Subject: All of the files included have instances where an array is new'ed but the corresponding delete does not have the corresponding [] argument. --- (limited to 'noncore/comm') diff --git a/noncore/comm/keypebble/krfbdecoder.cpp b/noncore/comm/keypebble/krfbdecoder.cpp index 837fcc5..27ae101 100644 --- a/noncore/comm/keypebble/krfbdecoder.cpp +++ b/noncore/comm/keypebble/krfbdecoder.cpp @@ -225,7 +225,7 @@ void KRFBDecoder::gotDesktopName() owarn << "Desktop: " << info->name.latin1() << "" << oendl; - delete buf; + delete [] buf; // Get the format we'll really use and tell the server decidePixelFormat(); @@ -535,7 +535,7 @@ void KRFBDecoder::gotRawRectChunk() char *hack = new char[ count ]; con->read( hack, count ); buf->drawRawRectChunk( hack, x, y, w, lines ); - delete hack; + delete [] hack; // /TODO: h = h - lines; @@ -728,7 +728,7 @@ void KRFBDecoder::gotServerCutText() qApp->clipboard()->setText( cutText ); */ - delete cutbuf; + delete [] cutbuf; // Now wait for the update (again) if ( oldState == AwaitingUpdate ) { currentState = AwaitingUpdate; -- cgit v0.9.0.2