diff options
Diffstat (limited to 'qpid/dotnet/Qpid.Client/Client/Message/QpidTextMessage.cs')
-rw-r--r-- | qpid/dotnet/Qpid.Client/Client/Message/QpidTextMessage.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/qpid/dotnet/Qpid.Client/Client/Message/QpidTextMessage.cs b/qpid/dotnet/Qpid.Client/Client/Message/QpidTextMessage.cs index ae5e2b7e66..a9b7d629db 100644 --- a/qpid/dotnet/Qpid.Client/Client/Message/QpidTextMessage.cs +++ b/qpid/dotnet/Qpid.Client/Client/Message/QpidTextMessage.cs @@ -86,8 +86,12 @@ namespace Qpid.Client.Message Text = text; } - public override void ClearBody() + public override void ClearBodyImpl() { + if (_data != null) + { + _data.Release(); + } _data = null; _decodedValue = null; } |