Stop passing bitmaps as raw pointers to ensure it is handled safely 03/29403/4
authorAdeel Kazmi <adeel.kazmi@samsung.com>
Mon, 27 Oct 2014 10:59:52 +0000 (10:59 +0000)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Wed, 29 Oct 2014 11:35:00 +0000 (04:35 -0700)
commit7be48eabba86248d9e198b61f140d7c4d8db1085
tree9c4921daad11b00ea9b6e77b7200498b4efef877
parentdf340de004fa6bc02b21f9cb7e7720a654f7c0c9
Stop passing bitmaps as raw pointers to ensure it is handled safely

Provided by Minru Huang.

[Problem]  Bitmap can be deleted by the time resource-thread comes to deal with it.
[Cause]    Using a raw pointer.
[Solution] Use intrusive-ptr so the bitmap is not deleted.

Change-Id: Ia8d04a042dc5d692eafb61bf497d2c8e46e23cf5
dali/internal/update/resources/resource-manager.cpp
dali/internal/update/resources/resource-manager.h