Index: src/XMPPConnection.m ================================================================== --- src/XMPPConnection.m +++ src/XMPPConnection.m @@ -703,11 +703,10 @@ - (void)close { if (_streamOpen) [_socket writeString: @""]; - [_oldParser release]; _oldParser = nil; [_oldElementBuilder release]; _oldElementBuilder = nil; Index: src/XMPPPresence.h ================================================================== --- src/XMPPPresence.h +++ src/XMPPPresence.h @@ -32,15 +32,10 @@ { OFString *_status, *_show; OFNumber *_priority; } -/*! - * The value of the stanza's type attribute. - */ -@property OF_NULL_RESETTABLE_PROPERTY (nonatomic, copy) OFString *type; - /*! * The text content of the status element. */ @property OF_NULLABLE_PROPERTY (nonatomic, copy) OFString *status; Index: src/XMPPPresence.m ================================================================== --- src/XMPPPresence.m +++ src/XMPPPresence.m @@ -45,11 +45,10 @@ OF_ENSURE(0); } @implementation XMPPPresence -@dynamic type; @synthesize status = _status, show = _show, priority = _priority; + (instancetype)presence { return [[[self alloc] init] autorelease]; @@ -133,18 +132,10 @@ [_priority release]; [super dealloc]; } -- (void)setType: (OFString *)type -{ - if (type == nil) - type = @"available"; - - [super setType: type]; -} - - (void)setShow: (OFString *)show { OFXMLElement *oldShow = [self elementForName: @"show" namespace: XMPP_NS_CLIENT]; OFString *old;