Skip to content

Commit

Permalink
Merge #1238
Browse files Browse the repository at this point in the history
1238: XWayland: fix double free of XCB connection r=AlanGriffiths a=wmww

Fixes #1235. Looks like it was just an oversight when moving ownership of the `xcb_connection_t` into `XCBConnection`.

Co-authored-by: William Wold <wm@wmww.sh>
  • Loading branch information
2 people authored and AlanGriffiths committed Feb 17, 2020
1 parent 103116e commit 92a38ac
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/server/frontend_xwayland/xwayland_wm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,11 +202,6 @@ mf::XWaylandWM::~XWaylandWM()
xcb_free_cursor(*connection, xcb_cursor);
}

if (*connection != nullptr)
{
xcb_disconnect(*connection);
}

close(wm_fd);
}

Expand Down

0 comments on commit 92a38ac

Please sign in to comment.