Ticket #9899: 0017-Fix-Mismatching-allocation-and-deallocation.patch

File 0017-Fix-Mismatching-allocation-and-deallocation.patch, 958 bytes (added by mt, 11 years ago)

Patch

  • src/add-ons/media/media-add-ons/writer/MediaWriter.cpp

    From 114bfe971759ead444fce22da4d0823126e7eb76 Mon Sep 17 00:00:00 2001
    From: Murai Takashi <tmurai01@gmail.com>
    Date: Fri, 26 Jul 2013 21:18:17 +0900
    Subject: [PATCH] Fix Mismatching allocation and deallocation
    
    ---
     .../media/media-add-ons/writer/MediaWriter.cpp     |    2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/src/add-ons/media/media-add-ons/writer/MediaWriter.cpp b/src/add-ons/media/media-add-ons/writer/MediaWriter.cpp
    index 81f5f14..98a5bc7 100644
    a b status_t MediaWriter::Connected(  
    368368            bytesWritten = GetCurrentFile()->Write(data,input.format.u.multistream.max_chunk_size);
    369369            end = TimeSource()->RealTime();
    370370        }
    371         delete data;
     371        delete[] data;
    372372        GetCurrentFile()->Seek(-bytesWritten,SEEK_CUR); // put it back where we found it
    373373   
    374374        fInternalLatency = end - start;