/Engine/Source/Runtime/MediaAssets/Public/MediaPlayer.h
Clean up before this object is destroyed. Normally you would not need to call this, but if you want to clean up resources before garbage collection (e.g. you are in the editor) then this could be helpful.
void CleanUpBeforeDestroy()