RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomImageList.Destroy Destructor

Destroys the image list and releases the memory allocated to it.

Pascal
destructor Destroy; override;
C++
virtual __fastcall ~TCustomImageList();

Destroy first calls UnRegisterChanges to unregister any objects registered to receive notification when the image list changed, and frees all helper objects associated with the image list. 

Destroy seldom needs to be called. However, when an image list is constructed without an owner by the Create or CreateSize method, call Free to release memory and dispose of the object. Free checks to see if the pointer is nil before calling Destroy. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!