Repository navigation
package:objective_c v9.6.2
·
5 commits
to main
since this release
- Fix potential memory leaks when converting a Dart
Stringto aNSString
(viatoNSStringor theNSStringconstructor) because the created
NSStringwas added to the autorelease pool. - Fix potential memory leaks when calling the following Objective-C collection
factories because the created collection was added to the autorelease pool:NSArray.filledNSArray.ofNSMutableArray.filledNSMutableArray.ofNSDictionary.ofNSDictionary.fromEntriesNSMutableDictionary.ofNSMutableDictionary.fromEntriesNSSet.ofNSMutableSet.of
- Fix potential memory leaks when converting a Dart
int,double,numor
boolto aNSNumber(viatoNSNumber) because the createdNSNumberwas
added to the autorelease pool. - Replace
NSDate.dateWithTimeIntervalSince1970with
NSDate.alloc().initWithTimeIntervalSince1970.NSDateuses pointer
tagging rather than reference counting for the entire range ofDateTime
so this change is for consistency (and not rely on an implementation
detail), not correctness. - Fix a crash in the
NSInputStreamreturned bytoNSInputStream: reading
from or closing the stream after its Dart side had already closed it raised
NSInternalInconsistencyException("DartInputStreamAdapter:
Dart_PostCObject_DL failed") and aborted the process.NSURLSessiondoes
exactly that with a request body stream when the request completes with an
error or is cancelled right after it starts.closeis now idempotent, and
a read on a closed stream (or one whose Dart owner is gone) fails with -1
instead of asserting. - Fix a bug where
toNSData/toNSMutableDataadded the returnedNSData
to the autorelease pool. - Fix a bug where
toNSInputStreamwould create cycles between Dart and
Objective-C.