From 74c4e49fc7faee75cc925ab3aabf727f7a757565 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 10 Apr 2016 02:53:21 -0400 Subject: [PATCH] Fix leak of LogEntry items in ProtocolClient. --- Source/ProtocolClient.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/ProtocolClient.m b/Source/ProtocolClient.m index d2ae226..fb23dee 100644 --- a/Source/ProtocolClient.m +++ b/Source/ProtocolClient.m @@ -172,7 +172,7 @@ LogEntry* entry = [LogEntry newSendEntry:message]; entry.lastReadTransactionID = _lastReadID; entry.lastWrittenTransactionID = _lastWrittenID; - [logger recordEntry:entry]; + [logger recordEntry:[entry autorelease]]; } // Callback with the message content when one has been receieved. @@ -182,7 +182,7 @@ LogEntry* entry = [LogEntry newReceiveEntry:message]; entry.lastReadTransactionID = _lastReadID; entry.lastWrittenTransactionID = _lastWrittenID; - [logger recordEntry:entry]; + [logger recordEntry:[entry autorelease]]; // Parse the XML and test for errors. NSError* error = nil; -- 2.43.5