From baac1343d396a4a1cfdab8a0cef937981c91efdf Mon Sep 17 00:00:00 2001 From: Bergmann89 Date: Sun, 24 Nov 2013 15:49:09 +0100 Subject: [PATCH] * free lib handles on finalization --- glBitmap.pas | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/glBitmap.pas b/glBitmap.pas index 7c6e840..07317a3 100644 --- a/glBitmap.pas +++ b/glBitmap.pas @@ -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. -- 2.1.4