Browse Source

* Moved FreeAndNil(FDollarStrings) to correct location

git-svn-id: trunk@33266 -
michael 9 years ago
parent
commit
51d22b02a0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/fcl-db/src/base/sqlscript.pp

+ 1 - 1
packages/fcl-db/src/base/sqlscript.pp

@@ -633,6 +633,7 @@ begin
   FreeAndNil(FSQL);
   FreeAndNil(FDirectives);
   FreeAndNil(FDefines);
+  FreeAndNil(FDollarStrings);
   inherited Destroy;
 end;
 
@@ -645,7 +646,6 @@ procedure TCustomSQLScript.DefaultDirectives;
 begin
   With FDirectives do
     begin
-  FreeAndNil(FDollarStrings);
     // Insertion order matters as testing for directives will be done with StartsWith
     if FUseSetTerm then
       Add('SET TERM');