Fix potential crash in HttpDataSource:seekToOffset
This commit is contained in:
parent
e94fdfc6e5
commit
27d83abf57
|
|
@ -93,7 +93,10 @@
|
|||
[self unregisterForEvents];
|
||||
}
|
||||
|
||||
CFReadStreamClose(stream);
|
||||
if (stream)
|
||||
{
|
||||
CFReadStreamClose(stream);
|
||||
}
|
||||
|
||||
stream = nil;
|
||||
relativePosition = 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue