magicalpanda/MagicalRecord — Issue #84: MRCoreDataAction cleanup_save_queue should NULL out background queue
Author: jasonwhyne
Created: 2011-11-15 23:52:07+00:00
State: open

MRCoreDataAction line 27:

void cleanup_save_queue()
{
if (coredata_background_save_queue != NULL)
{
dispatch_release(coredata_background_save_queue);
}
}

should read:

void cleanup_save_queue()
{
if (coredata_background_save_queue != NULL)
{
dispatch_release(coredata_background_save_queue);
coredata_background_save_queue = NULL;
}
}

otherwise after a call to cleanup, subsequent calls that use the background_save_queue() cause a crash.