Fix BKE_blender_atexit_unregister error removing from linked list

This is an old bug exposed by having multiple atexit calls since
c65c4149c9.
This commit is contained in:
Campbell Barton 2021-01-07 13:22:28 +11:00
parent 27426c05b1
commit f35a38fba7
Notes: blender-bot 2023-02-14 05:50:03 +01:00
Referenced by issue #83216, Potential candidates for corrective releases
Referenced by issue #82675, "ImportError: sys.meta_path is None, Python is likely shutting down" on exit when built as a Python module
1 changed files with 1 additions and 1 deletions

View File

@ -417,7 +417,7 @@ void BKE_blender_atexit_unregister(void (*func)(void *user_data), const void *us
free(ae);
return;
}
ae_p = &ae;
ae_p = &ae->next;
ae = ae->next;
}
}