Browse Source

+ Fix a leak of connections

git-svn-id: trunk@3149 -
joost 19 years ago
parent
commit
8b67fbcba4
1 changed files with 5 additions and 1 deletions
  1. 5 1
      fcl/db/sqldb/mysql/mysqlconn.inc

+ 5 - 1
fcl/db/sqldb/mysql/mysqlconn.inc

@@ -260,7 +260,11 @@ end;
 
 procedure TConnectionName.UnPrepareStatement(cursor: TSQLCursor);
 begin
-  // not necessary
+  With Cursor as TCursorName do
+    begin
+    mysql_close(FQMySQL);
+    FQMysql := nil;
+    end;
 end;
 
 procedure TConnectionName.FreeFldBuffers(cursor: TSQLCursor);