mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 04:15:43 +00:00
Backed out changeset 06714f8dc18c (bug 902909) for OSX bustage on a CLOSED TREE.
This commit is contained in:
parent
bc904fa9b2
commit
9905ab6f3e
@ -1132,8 +1132,7 @@ IDBObjectStore::GetStructuredCloneReadInfoFromStatement(
|
||||
return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
|
||||
}
|
||||
|
||||
nsAutoArrayPtr<char> uncompressed(new (fallible_t()) char[uncompressedLength]);
|
||||
NS_ENSURE_TRUE(uncompressed, NS_ERROR_OUT_OF_MEMORY);
|
||||
nsAutoArrayPtr<char> uncompressed(new char[uncompressedLength]);
|
||||
|
||||
if (!snappy::RawUncompress(compressed, compressedLength,
|
||||
uncompressed.get())) {
|
||||
@ -2969,8 +2968,7 @@ AddHelper::DoDatabaseWork(mozIStorageConnection* aConnection)
|
||||
size_t compressedLength = snappy::MaxCompressedLength(uncompressedLength);
|
||||
// This will hold our compressed data until the end of the method. The
|
||||
// BindBlobByName function will copy it.
|
||||
nsAutoArrayPtr<char> compressed(new (fallible_t()) char[compressedLength]);
|
||||
NS_ENSURE_TRUE(compressed, NS_ERROR_OUT_OF_MEMORY);
|
||||
nsAutoArrayPtr<char> compressed(new char[compressedLength]);
|
||||
|
||||
snappy::RawCompress(uncompressed, uncompressedLength, compressed.get(),
|
||||
&compressedLength);
|
||||
|
@ -882,8 +882,7 @@ public:
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
size_t compressedLength = snappy::MaxCompressedLength(uncompressedLength);
|
||||
nsAutoArrayPtr<char> compressed(new (fallible_t()) char[compressedLength]);
|
||||
NS_ENSURE_TRUE(compressed, NS_ERROR_OUT_OF_MEMORY);
|
||||
nsAutoArrayPtr<char> compressed(new char[compressedLength]);
|
||||
|
||||
snappy::RawCompress(reinterpret_cast<const char*>(uncompressed),
|
||||
uncompressedLength, compressed.get(),
|
||||
|
Loading…
Reference in New Issue
Block a user