Browse Source

* free lib handles on finalization

master
Bergmann89 11 years ago
parent
commit
baac1343d3
1 changed files with 8 additions and 1 deletions
  1. +8
    -1
      glBitmap.pas

+ 8
- 1
glBitmap.pas View File

@@ -8559,8 +8559,15 @@ initialization
finalization
TFormatDescriptor.Finalize;

{$IFDEF GLB_NATIVE_OGL}
if Assigned(GL_LibHandle) then
glbFreeLibrary(GL_LibHandle);

{$IFDEF GLB_NATIVE_OGL_DYNAMIC}
if Assigned(GLU_LibHandle) then
glbFreeLibrary(GLU_LibHandle);
FreeAndNil(InitOpenGLCS);
{$ENDIF}
{$ENDIF}

end.
end.

Loading…
Cancel
Save