Fix O2PDFxref only keeping a weak reference to its contents

This commit is contained in:
Sergey Bugaev 2019-01-09 19:37:09 +03:00
parent d6dd5d543c
commit 53400f1021

View File

@ -23,7 +23,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
_data=[data retain];
_previous=nil;
_numberToEntries=NSCreateMapTable(NSIntegerMapKeyCallBacks,NSNonRetainedObjectMapValueCallBacks,0);
_entryToObject=NSCreateMapTable(NSNonRetainedObjectMapKeyCallBacks,NSNonRetainedObjectMapValueCallBacks,0);
_entryToObject=NSCreateMapTable(NSNonRetainedObjectMapKeyCallBacks,NSObjectMapValueCallBacks,0);
_entriesInOrder=[NSMutableArray new];
_trailer=nil;
return self;