Skip to content

Commit ef01e58

Browse files
committed
Add missing GC.SuppressFinalize.
1 parent 60ceaed commit ef01e58

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/MySqlConnector/MySql.Data.MySqlClient/MySqlCommand.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ public MySqlCommand(string? commandText, MySqlConnection? connection, MySqlTrans
4949
private MySqlCommand(MySqlCommand other)
5050
: this(other.CommandText, other.Connection, other.Transaction)
5151
{
52+
GC.SuppressFinalize(this);
5253
m_commandTimeout = other.m_commandTimeout;
5354
m_commandType = other.m_commandType;
5455
DesignTimeVisible = other.DesignTimeVisible;

0 commit comments

Comments
 (0)