diff options
Diffstat (limited to 'libs/rs/rsAllocation.cpp')
-rw-r--r-- | libs/rs/rsAllocation.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libs/rs/rsAllocation.cpp b/libs/rs/rsAllocation.cpp index 6748bb4772b3..fc41a722cdc0 100644 --- a/libs/rs/rsAllocation.cpp +++ b/libs/rs/rsAllocation.cpp @@ -57,8 +57,6 @@ Allocation::Allocation(Context *rsc, const Type *type, void *bmp, void Allocation::init(Context *rsc, const Type *type) { - mAllocFile = __FILE__; - mAllocLine = __LINE__; mPtr = NULL; mCpuWrite = false; @@ -478,7 +476,7 @@ Allocation *Allocation::createFromStream(Context *rsc, IStream *stream) uint32_t dataSize = stream->loadU32(); if(dataSize != type->getSizeBytes()) { LOGE("failed to read allocation because numbytes written is not the same loaded type wants\n"); - delete type; + ObjectBase::checkDelete(type); return NULL; } |