SceneXRender::Window uses a static XRenderPicture which it didn't clean up
ClosedPublic

Authored by graesslin on Jun 1 2016, 10:53 AM.

Details

Summary

Using a static XRenderPicture results in a crash on exit as for cleanup
the already destroyed xcb_connection_t* is required.

This change ensures that the static XRenderPicture gets destroyed in the
static cleanup handler for SceneXRender::Window.

CCBUG: 363251

Diff Detail

Repository
R108 KWin
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
graesslin updated this revision to Diff 4131.Jun 1 2016, 10:53 AM
graesslin retitled this revision from to SceneXRender::Window uses a static XRenderPicture which it didn't clean up.
graesslin updated this object.
graesslin edited the test plan for this revision. (Show Details)
graesslin added a reviewer: Plasma.
Restricted Application added a project: Plasma. · View Herald TranscriptJun 1 2016, 10:53 AM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
sebas accepted this revision.Jun 13 2016, 12:47 PM
sebas added a reviewer: sebas.
sebas added a subscriber: sebas.

LGTM

This revision is now accepted and ready to land.Jun 13 2016, 12:47 PM
This revision was automatically updated to reflect the committed changes.