glscene / GLScene

GLScene is a graphics engine based on OpenGL with VCL components for Delphi & C++ Builder.
http://www.glscene.org
Mozilla Public License 2.0
216 stars 32 forks source link

Remove CurrentJob after notification #13

Closed smetz84 closed 2 years ago

smetz84 commented 2 years ago

FCameraJobList is a TGLCameraJobList inherited of TObjectList which has the capability of automatically freeing object entries when they are removed from the list. That means that when CurrentJob is removed from the list, it is destroyed.

The list remove must be done after notification in order to avoid a buffer overrun issue if CurrentJob is used in FOnJobFinished(CurrentJob)

glscene commented 2 years ago

agree