diff options
Diffstat (limited to 'util/fbcompose/XRenderWindow.cc')
-rw-r--r-- | util/fbcompose/XRenderWindow.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/fbcompose/XRenderWindow.cc b/util/fbcompose/XRenderWindow.cc index eb4d672..499ffec 100644 --- a/util/fbcompose/XRenderWindow.cc +++ b/util/fbcompose/XRenderWindow.cc | |||
@@ -38,10 +38,10 @@ XRenderWindow::XRenderWindow(const XRenderScreen &screen, Window window_xid, con | |||
38 | m_pict_filter(pict_filter) { | 38 | m_pict_filter(pict_filter) { |
39 | 39 | ||
40 | XRenderPictFormat *content_pict_format = XRenderFindVisualFormat(display(), visual()); | 40 | XRenderPictFormat *content_pict_format = XRenderFindVisualFormat(display(), visual()); |
41 | m_content_picture = new XRenderPicture(screen, content_pict_format, m_pict_filter); | 41 | m_content_picture.reset( new XRenderPicture(screen, content_pict_format, m_pict_filter) ); |
42 | 42 | ||
43 | XRenderPictFormat *mask_pict_format = XRenderFindStandardFormat(display(), PictStandardARGB32); | 43 | XRenderPictFormat *mask_pict_format = XRenderFindStandardFormat(display(), PictStandardARGB32); |
44 | m_mask_picture = new XRenderPicture(screen, mask_pict_format, m_pict_filter); | 44 | m_mask_picture.reset( new XRenderPicture(screen, mask_pict_format, m_pict_filter) ); |
45 | } | 45 | } |
46 | 46 | ||
47 | // Destructor. | 47 | // Destructor. |