diff options
author | Dianne Hackborn <hackbod@google.com> | 2010-03-30 21:04:17 -0700 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2010-03-30 21:04:17 -0700 |
commit | 966fcb81eece9096040ccc185bb662335d3964cf (patch) | |
tree | 49aa93b937e099258601e4c1d2566d4144650704 /libs | |
parent | 544592e14f8d7643238e40ba9879727497900f35 (diff) | |
download | frameworks_base-966fcb81eece9096040ccc185bb662335d3964cf.zip frameworks_base-966fcb81eece9096040ccc185bb662335d3964cf.tar.gz frameworks_base-966fcb81eece9096040ccc185bb662335d3964cf.tar.bz2 |
Revert "fix [2542425] memory leak during video recording"
This reverts commit 544592e14f8d7643238e40ba9879727497900f35.
Diffstat (limited to 'libs')
-rw-r--r-- | libs/utils/VectorImpl.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libs/utils/VectorImpl.cpp b/libs/utils/VectorImpl.cpp index 4954ffe..0322af7 100644 --- a/libs/utils/VectorImpl.cpp +++ b/libs/utils/VectorImpl.cpp @@ -351,7 +351,6 @@ void* VectorImpl::_grow(size_t where, size_t amount) { const SharedBuffer* cur_sb = SharedBuffer::sharedBuffer(mStorage); SharedBuffer* sb = cur_sb->editResize(new_capacity * mItemSize); - release_storage(); mStorage = sb->data(); } else { SharedBuffer* sb = SharedBuffer::alloc(new_capacity * mItemSize); @@ -404,7 +403,6 @@ void VectorImpl::_shrink(size_t where, size_t amount) { const SharedBuffer* cur_sb = SharedBuffer::sharedBuffer(mStorage); SharedBuffer* sb = cur_sb->editResize(new_capacity * mItemSize); - release_storage(); mStorage = sb->data(); } else { SharedBuffer* sb = SharedBuffer::alloc(new_capacity * mItemSize); |