During unloading of unused drivers, the loader checks for the driver in its list of preloaded ICD's, and removes it if it is in it. If the user provided a custom callback during instance creation, this was being used during this unloading, which is wrong because preloaded icd's weren't allocated with the custom allocator in the first place.
During unloading of unused drivers, the loader checks for the driver in its list of preloaded ICD's, and removes it if it is in it. If the user provided a custom callback during instance creation, this was being used during this unloading, which is wrong because preloaded icd's weren't allocated with the custom allocator in the first place.