mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 814341 - fix memory leak in Bluetooth, r=gyeh
This commit is contained in:
parent
be79d3253c
commit
14c2e5fa6b
@ -157,8 +157,8 @@ private:
|
||||
*/
|
||||
bool mWaitingForConfirmationFlag;
|
||||
|
||||
nsAutoPtr<uint8_t> mBodySegment;
|
||||
nsAutoPtr<uint8_t> mReceivedDataBuffer;
|
||||
nsAutoArrayPtr<uint8_t> mBodySegment;
|
||||
nsAutoArrayPtr<uint8_t> mReceivedDataBuffer;
|
||||
|
||||
nsCOMPtr<nsIDOMBlob> mBlob;
|
||||
nsCOMPtr<nsIThread> mReadFileThread;
|
||||
|
@ -118,6 +118,7 @@ ParseHeaders(const uint8_t* aHeaderStart,
|
||||
uint8_t* content = new uint8_t[contentLength];
|
||||
memcpy(content, ptr, contentLength);
|
||||
aRetHandlerSet->AddHeader(new ObexHeader(headerId, contentLength, content));
|
||||
delete [] content;
|
||||
|
||||
ptr += contentLength;
|
||||
}
|
||||
|
@ -119,7 +119,7 @@ public:
|
||||
|
||||
ObexHeaderId mId;
|
||||
int mDataLength;
|
||||
nsAutoPtr<uint8_t> mData;
|
||||
nsAutoArrayPtr<uint8_t> mData;
|
||||
};
|
||||
|
||||
class ObexHeaderSet {
|
||||
|
Loading…
Reference in New Issue
Block a user