Skip to content

Commit 271ef83

Browse files
committed
Fix subsurface deletion segfault
1 parent 89858cc commit 271ef83

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

src/surface/subsurface.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ Subsurface::Subsurface(Surface& parent, wlr_subsurface& subsurface) noexcept
2626
}
2727

2828
Subsurface::~Subsurface() noexcept {
29-
wl_list_remove(&listeners.map.link);
3029
wl_list_remove(&listeners.destroy.link);
3130
}
3231

src/surface/subsurface.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ class Subsurface final : public Surface {
1717
public:
1818
struct Listeners {
1919
std::reference_wrapper<Subsurface> parent;
20-
wl_listener map = {};
2120
wl_listener destroy = {};
2221
explicit Listeners(Subsurface& parent) noexcept : parent(parent) {}
2322
};

0 commit comments

Comments
 (0)