Mir

Merge lp:~alan-griffiths/mir/fix-1718677 into lp:mir

Proposed by Alan Griffiths
Status: Rejected
Rejected by: Chris Halse Rogers
Proposed branch: lp:~alan-griffiths/mir/fix-1718677
Merge into: lp:mir
Diff against target: 35 lines (+6/-3)
1 file modified
src/server/frontend/wayland/wayland_connector.cpp (+6/-3)
To merge this branch: bzr merge lp:~alan-griffiths/mir/fix-1718677
Reviewer Review Type Date Requested Status
Mir CI Bot continuous-integration Approve
Mir development team Pending
Review via email: mp+331152@code.launchpad.net

Commit message

Don't leak WlShellSurface instances (LP: #1718677)

To post a comment you must log in.
Revision history for this message
Mir CI Bot (mir-ci-bot) wrote :

PASSED: Continuous integration, rev:4259
https://mir-jenkins.ubuntu.com/job/mir-ci/3676/
Executed test runs:
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-mir/5036
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-0-fetch/5272
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-1-sourcepkg/release=artful/5260
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-1-sourcepkg/release=xenial/5260
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-1-sourcepkg/release=zesty/5260
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=clang,platform=mesa,release=artful/5079
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=clang,platform=mesa,release=artful/5079/artifact/output/*zip*/output.zip
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=clang,platform=mesa,release=zesty/5079
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=clang,platform=mesa,release=zesty/5079/artifact/output/*zip*/output.zip
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=gcc,platform=mesa,release=artful/5079
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=gcc,platform=mesa,release=artful/5079/artifact/output/*zip*/output.zip
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=gcc,platform=mesa,release=xenial/5079
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=gcc,platform=mesa,release=xenial/5079/artifact/output/*zip*/output.zip
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=gcc,platform=mesa,release=zesty/5079
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=gcc,platform=mesa,release=zesty/5079/artifact/output/*zip*/output.zip
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=cross-armhf,compiler=gcc,platform=mesa,release=artful/5079
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=cross-armhf,compiler=gcc,platform=mesa,release=artful/5079/artifact/output/*zip*/output.zip
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=cross-armhf,compiler=gcc,platform=mesa,release=zesty/5079
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=cross-armhf,compiler=gcc,platform=mesa,release=zesty/5079/artifact/output/*zip*/output.zip
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=i386,compiler=gcc,platform=mesa,release=xenial/5079
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=i386,compiler=gcc,platform=mesa,release=xenial/5079/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://mir-jenkins.ubuntu.com/job/mir-ci/3676/rebuild

review: Approve (continuous-integration)

Unmerged revisions

4259. By Alan Griffiths

Don't leak WlShellSurface instances

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/server/frontend/wayland/wayland_connector.cpp'
--- src/server/frontend/wayland/wayland_connector.cpp 2017-09-15 16:34:13 +0000
+++ src/server/frontend/wayland/wayland_connector.cpp 2017-09-21 16:25:36 +0000
@@ -1409,7 +1409,7 @@
1409 shell->modify_surface(session, id, hide_spec);1409 shell->modify_surface(session, id, hide_spec);
1410 });1410 });
14111411
1412 auto shim = new DestructionShim{session, shell, surface_id};1412 auto shim = new DestructionShim{session, shell, surface_id, this};
1413 shim->destruction_listener.notify = &cleanup_surface;1413 shim->destruction_listener.notify = &cleanup_surface;
1414 wl_resource_add_destroy_listener(1414 wl_resource_add_destroy_listener(
1415 resource,1415 resource,
@@ -1476,10 +1476,12 @@
1476 DestructionShim(1476 DestructionShim(
1477 std::shared_ptr<mf::Session> const& session,1477 std::shared_ptr<mf::Session> const& session,
1478 std::shared_ptr<mf::Shell> const& shell,1478 std::shared_ptr<mf::Shell> const& shell,
1479 mf::SurfaceId id)1479 mf::SurfaceId id,
1480 WlShellSurface* self)
1480 : session{session},1481 : session{session},
1481 shell{shell},1482 shell{shell},
1482 surface_id{id}1483 surface_id{id},
1484 self{self}
1483 {1485 {
1484 }1486 }
14851487
@@ -1487,6 +1489,7 @@
1487 std::shared_ptr<mf::Shell> const shell;1489 std::shared_ptr<mf::Shell> const shell;
1488 mf::SurfaceId const surface_id;1490 mf::SurfaceId const surface_id;
1489 wl_listener destruction_listener;1491 wl_listener destruction_listener;
1492 std::unique_ptr<WlShellSurface> const self;
1490 };1493 };
14911494
1492 static_assert(1495 static_assert(

Subscribers

People subscribed via source and target branches