Question about Deletion of objects
So in my Ondraw member of the view class, I create and use two pens aside from the standard black one..
My question.. is it crucial to delete the added pens at the end of the ondraw funtion?
so what i'm doing is,
- I make a blue pen (then select it) and draw with it
- I make a red pen (then select it) and draw with it
-when i'm done i select the old black pen
- then i delete the blue and red pens at the end of the fuction
so does this really do anything?? cause it appears to make no difference whether i delete or not. Is there some kind of memory issue with this?? kind of like when you dynamically allocate memoty.. where you should always delete??