Fix leak with SharedBitmaps allocated by new[]
commit82ba6a405f3f83ae5dd4b304c1eb5f8a01b91c43
authorjbauman@chromium.org <jbauman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 4 Jun 2014 11:09:59 +0000 (4 11:09 +0000)
committerjbauman@chromium.org <jbauman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 4 Jun 2014 11:09:59 +0000 (4 11:09 +0000)
treed4dd6668810de0a9da4aef31b46dd0fc093b13f1
parent43d0610ab216be636ccd80fe42ed338c326a6d81
Fix leak with SharedBitmaps allocated by new[]

The handle_map_ was holding onto them, so they weren't being released. Instead, they should be removed from the map whenever that first SharedBitmap that was created is destroyed.

BUG=362924
TBR=piman@chromium.org

Review URL: https://codereview.chromium.org/310973003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@274765 0039d316-1c4b-4281-b951-d872f2087c98
content/common/host_shared_bitmap_manager.cc
content/common/host_shared_bitmap_manager.h