Page 1 of 1

TRotateImage question

PostPosted: November 4th, 2006, 9:29 pm
by gczobel
Hi!
I have a simple question. How I can clear the picture in the component?

Code: Select all
RotateImage1.Picture := nil;


This work but I'm afraid to create a memory leak.

Thanks!

PostPosted: November 6th, 2006, 1:41 pm
by Kambiz
The right way is:

Code: Select all
RotateImage1.Picture.Graphic := nil;

PostPosted: November 13th, 2006, 5:28 pm
by gczobel
You're right! change the picture to nil destroy the current.
Thanks!