Disconnect all leaf nodes when destroying the instance, otherwise memory would leak.
Disconnect all leaf nodes when destroying the instance, otherwise memory would leak.

Distrotech/mdds,Distrotech/mdds