Browse Source

* Unregister routes

git-svn-id: trunk@42265 -
michael 6 years ago
parent
commit
ba1fb2c0cf
1 changed files with 2 additions and 0 deletions
  1. 2 0
      packages/fcl-web/src/restbridge/sqldbrestbridge.pp

+ 2 - 0
packages/fcl-web/src/restbridge/sqldbrestbridge.pp

@@ -869,6 +869,8 @@ end;
 
 destructor TSQLDBRestDispatcher.Destroy;
 begin
+  if RoutesRegistered then
+    UnregisterRoutes;
   Authenticator:=Nil;
   FreeAndNil(FAdminUserIDs);
   FreeAndNil(FCustomViewResource);