I've noticed that we are not incrementing reference counter when registering source in memory manager.
That's why there always been a chance of crash because of dangling source pointer.
How Has This Been Tested?
Manually, windows build
Types of changes
Bug fix (non-breaking change which fixes an issue)
Checklist:
[x] The code has been tested.
[x] All commit messages are properly formatted and commits squashed where appropriate.
[x] I have included updates to all appropriate documentation.
Description
Fixing crash with the following callstack
Motivation and Context
I've noticed that we are not incrementing reference counter when registering source in memory manager. That's why there always been a chance of crash because of dangling source pointer.
How Has This Been Tested?
Manually, windows build
Types of changes
Checklist: