[PATCH v3 1/2] strmbase: Detach the window from the parent before destroying it.