Why this worked before? Because of memory leak, _disk was alive and then context pointer in the appendDisk callback was still valid. But now, since we're properly releasing the _disk, it can be invalid if we keep appendDisk callback around, because context can point to a garbage.
This PR:
[super init]
callWhy this worked before? Because of memory leak,
_disk
was alive and thencontext
pointer in theappendDisk
callback was still valid. But now, since we're properly releasing the_disk
, it can be invalid if we keepappendDisk
callback around, becausecontext
can point to a garbage.