3d widget set widget function memory leak?


I want to know if there is any memory leak, if I create multiple user widgets and set them on a 3d widget. Something like this:

I have a blueprint actor “UMG BP” that has a 3d widget “UMGWidget”. So if I try to create the same user widget reference “Video UMG” and set it to the 3d widget, will the old user widget reference “Video UMG” be destroyed?

I know that when i use the command remove from parent destroys that particular user widget, but does the 3d widget destroy the old user widget when a new user widget is placed in stead of the first using the Set Widget function?