setLifecycleOwner

sets the LifecycleOwner for dismissing automatically when the LifecycleOwner is destroyed. It will prevents memory leak : Avoid Memory Leak