Fix leak of instance memory

This commit is contained in:
rfm 2025-01-10 17:17:21 +00:00
parent ab715bd50c
commit cf73e7fdb3

View file

@ -116,17 +116,20 @@ static NSMutableDictionary *__subscribers = nil;
- (void) dealloc
{
RELEASE(internal->_fileOperationKind);
RELEASE(internal->_kind);
RELEASE(internal->_estimatedTimeRemaining);
RELEASE(internal->_fileCompletedCount);
RELEASE(internal->_fileTotalCount);
RELEASE(internal->_throughput);
RELEASE(internal->_userInfo);
RELEASE(internal->_localizedDescription);
RELEASE(internal->_localizedAdditionalDescription);
[super dealloc];
if (GS_EXISTS_INTERNAL)
{
RELEASE(internal->_fileOperationKind);
RELEASE(internal->_kind);
RELEASE(internal->_estimatedTimeRemaining);
RELEASE(internal->_fileCompletedCount);
RELEASE(internal->_fileTotalCount);
RELEASE(internal->_throughput);
RELEASE(internal->_userInfo);
RELEASE(internal->_localizedDescription);
RELEASE(internal->_localizedAdditionalDescription);
GS_DESTROY_INTERNAL(NSProgress);
}
DEALLOC
}
+ (NSProgress *) discreteProgressWithTotalUnitCount: (int64_t)unitCount