# Does BitmapData.dispose() remove memory occupied by its Bitmap

**URL:** https://forum.kirupa.com/t/does-bitmapdata-dispose-remove-memory-occupied-by-its-bitmap/310274
**Category:** flash
**Created:** [June 6, 2010, 12:47pm UTC](https://forum.kirupa.com/t/does-bitmapdata-dispose-remove-memory-occupied-by-its-bitmap/310274 "2010-06-06T12:47:01Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![laaptu](https://avatars.discourse-cdn.com/v4/letter/l/76d3ee/32.png) [@laaptu](https://forum.kirupa.com/u/laaptu)
#### Post date: [June 6, 2010, 12:47pm UTC](https://forum.kirupa.com/t/does-bitmapdata-dispose-remove-memory-occupied-by-its-bitmap/310274/1 "2010-06-06T12:47:01Z")

</div>

Hi there,  
This is my scenario  
1: I upload an image  
2: Without altering it,I make a copy of it and use it display to users in resized format  
note: I won’t display the original image.  
3:Now when user deletes the resized image,i need to delete the image loaded as bitmap i.e. the original image which i won’t be displaying

For that I used bitmap.bitmapData.dispose() method.But,it doesn’t free up the memory taken by the bitmap.  
For instance at initial state the memory usage is 58 Mb and upon loading 3 images the size increases to 87 Mb.  
And when I delete all the images the size decreases to 81 MB only.  
So,I feel the loaded bitmap is not completely removed.  
Any idea what should I do
