diff --git a/Provider/src/FirebirdSql.Data.FirebirdClient/Client/Native/FesStatement.cs b/Provider/src/FirebirdSql.Data.FirebirdClient/Client/Native/FesStatement.cs index 90d4d3b3..6acc745c 100644 --- a/Provider/src/FirebirdSql.Data.FirebirdClient/Client/Native/FesStatement.cs +++ b/Provider/src/FirebirdSql.Data.FirebirdClient/Client/Native/FesStatement.cs @@ -124,6 +124,25 @@ public FesStatement(DatabaseBase db, TransactionBase transaction) #region Dispose2 + public override void Dispose2() + { + if (!_disposed) + { + _disposed = true; + Release(); + Clear(); + _db = null; + _fields = null; + _parameters = null; + _transaction = null; + OutputParameters = null; + _statusVector = null; + _allRowsFetched = false; + _handle.Dispose(); + FetchSize = 0; + base.Dispose2(); + } + } public override async ValueTask Dispose2Async(CancellationToken cancellationToken = default) { if (!_disposed)