Browse Source

+ Fix a leak of connections

git-svn-id: trunk@3149 -
joost 19 năm trước cách đây
mục cha
commit
8b67fbcba4
1 tập tin đã thay đổi với 5 bổ sung1 xóa
  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);