Fix potential crash in HttpDataSource:seekToOffset

This commit is contained in:
Thong Nguyen 2013-03-28 10:16:56 +00:00
parent e94fdfc6e5
commit 27d83abf57
1 changed files with 4 additions and 1 deletions

View File

@ -93,7 +93,10 @@
[self unregisterForEvents];
}
CFReadStreamClose(stream);
if (stream)
{
CFReadStreamClose(stream);
}
stream = nil;
relativePosition = 0;