04-24-2014 05:18 AM
hi, i create my ui as well as logic using c++ only. so, there's a lot of need to use pointers. i use the new operator as well as the builder functions to initialize these pointers. do i need to deallocate the pointers that were initialized using builder functions such as Container::create(); ?
Solved! Go to Solution.
04-24-2014 05:46 AM
Yes and No.
If you have parented the object then you do not need to as when the parent object is deleted then so are all the child objects.
If you do not set the parent then you will need to manually delete.
04-24-2014 05:59 AM
No, these are BlackBerry internal warnings and as long as your app doesn't crash can safely be ignored.
As long as you believe you are deallocating memory correctly as discussed above.