Commit 682f3b4a authored by jehan's avatar jehan

set image_resources_dir to NULL after deletion

parent f49b3d5e
......@@ -719,7 +719,10 @@ struct _MSEventQueue *ms_factory_create_event_queue(MSFactory *obj) {
}
void ms_factory_destroy_event_queue(MSFactory *obj) {
if (obj->image_resources_dir) bctbx_free(obj->image_resources_dir);
if (obj->image_resources_dir) {
bctbx_free(obj->image_resources_dir);
obj->image_resources_dir = NULL; //to avoid double free from ms_factory_destroy;
}
ms_event_queue_destroy(obj->evq);
ms_factory_set_event_queue(obj,NULL);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment