FIX: Don't unload wlx-plugins under gtk2

This commit is contained in:
Alexander Koblov 2016-05-14 11:11:47 +00:00
commit 227b6129cb

View file

@ -253,7 +253,7 @@ end;
procedure TWlxModule.UnloadModule;
begin
{$IF NOT DEFINED(LCLQT)}
{$IF NOT (DEFINED(LCLQT) or DEFINED(LCLGTK2))}
{$IF (not DEFINED(LINUX)) or ((FPC_VERSION > 2) or ((FPC_VERSION=2) and (FPC_RELEASE >= 5)))}
if FModuleHandle <> 0 then
FreeLibrary(FModuleHandle);