aqtoolkit icon indicating copy to clipboard operation
aqtoolkit copied to clipboard

Handling of input stream error

Open ghost opened this issue 13 years ago • 2 comments

I am new to Objective C and your streaming XML parser, but I ran into problem when network error occurs. I wanted to know if this is correct: In AQXMLParser.m at line 963: _internal->error = [input streamError];

Should this be: _internal->error = [[input streamError] retain];

When this error occurs, then the parser is released, I get a crash in -dealloc at the line: [_internal->error release];

with this error message: -[CFError release]: message sent to deallocated instance

ghost avatar Dec 08 '10 00:12 ghost

Yes, good catch— it should indeed be retained. I'll tweak it and push the changes. In fact, I think there might be some other similar changes in the Kobo app to move across.

AlanQuatermain avatar Dec 08 '10 00:12 AlanQuatermain

Funny. I just fixed this error in our app and was about to report it :)

marcusramberg avatar Dec 08 '10 23:12 marcusramberg