# UMG widgets added as a split screen player are not cleaned up after the player leaves

**URL:** <https://forums.unrealengine.com/t/umg-widgets-added-as-a-split-screen-player-are-not-cleaned-up-after-the-player-leaves/353035>\
**Category:** UI\
**Tags:** unreal-engine, splitscreen, CPP, question, UMG\
**Created:** [April 5, 2016, 2:43pm UTC](https://forums.unrealengine.com/t/umg-widgets-added-as-a-split-screen-player-are-not-cleaned-up-after-the-player-leaves/353035 "2016-04-05T14:43:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Constan7ine](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Constan7ine](https://forums.unrealengine.com/u/Constan7ine)\
**Post date:** [April 5, 2016, 2:43pm UTC](https://forums.unrealengine.com/t/umg-widgets-added-as-a-split-screen-player-are-not-cleaned-up-after-the-player-leaves/353035/1 "2016-04-05T14:43:34Z")

</div>

I just upgraded the engine to 4.11 and the most notable issue I’ve found is that UMG widgets owned by a non-primary player and added to the view port, are not removed when that local player is destroyed, or when the game transitions to a new map.

There used to be a bug like this existing all the time, but now it appears to happen only for non-primary players.

If you guys at epic are too busy, where are UMG widgets cleared so they can be destroyed? I might be able to go and fix it myself.

Thanks.

---

<div class="post-metadata">

**Author:** ![Cody.Albert](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/cody.albert/32/1088813_2.png) [@Cody.Albert](https://forums.unrealengine.com/u/Cody.Albert)\
**Post date:** [April 7, 2016, 5:57pm UTC](https://forums.unrealengine.com/t/umg-widgets-added-as-a-split-screen-player-are-not-cleaned-up-after-the-player-leaves/353035/2 "2016-04-07T17:57:22Z")

</div>

Hi Constan7ine,

Thanks for the report! It looks like you’re right, UMG widgets aren’t clearing when the player is removed. I’ll take a look into it and see where the bug is happening and how involved a fix will be.

---

<div class="post-metadata">

**Author:** ![Cody.Albert](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/cody.albert/32/1088813_2.png) [@Cody.Albert](https://forums.unrealengine.com/u/Cody.Albert)\
**Post date:** [April 7, 2016, 8:18pm UTC](https://forums.unrealengine.com/t/umg-widgets-added-as-a-split-screen-player-are-not-cleaned-up-after-the-player-leaves/353035/3 "2016-04-07T20:18:04Z")

</div>

I’ve identified the problem, and logged it in our system under UE-29207. We’re planning to address it in the next hotfix. In the mean time, if it’s causing you a lot of grief, you can temporarily remove the widgets manually before you remove the player. Thanks again for your report!

---

<div class="post-metadata">

**Author:** ![Constan7ine](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Constan7ine](https://forums.unrealengine.com/u/Constan7ine)\
**Post date:** [April 7, 2016, 8:55pm UTC](https://forums.unrealengine.com/t/umg-widgets-added-as-a-split-screen-player-are-not-cleaned-up-after-the-player-leaves/353035/4 "2016-04-07T20:55:51Z")

</div>

No problem, assuming the next patch takes a week or so to fix we’ll hit our next milestone without the bug. Thanks for your help!
