* free lib handles on finalization
authorBergmann89 <bergmann89@muo-game.de>
Sun, 24 Nov 2013 14:49:09 +0000 (15:49 +0100)
committerBergmann89 <bergmann89@muo-game.de>
Sun, 24 Nov 2013 14:49:09 +0000 (15:49 +0100)
glBitmap.pas

index 7c6e840..07317a3 100644 (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.
\ No newline at end of file
+end.