summaryrefslogtreecommitdiff
path: root/src/lib/cinema.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/cinema.cc')
-rw-r--r--src/lib/cinema.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/cinema.cc b/src/lib/cinema.cc
index 57780fa7b..3b4b9d7b6 100644
--- a/src/lib/cinema.cc
+++ b/src/lib/cinema.cc
@@ -91,7 +91,10 @@ Cinema::add_screen (shared_ptr<Screen> s)
void
Cinema::remove_screen (shared_ptr<Screen> s)
{
- _screens.remove (s);
+ auto iter = std::find(_screens.begin(), _screens.end(), s);
+ if (iter != _screens.end()) {
+ _screens.erase(iter);
+ }
}
void