Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 352492 Details for
Bug 447862
kde-base/plasma-desktop resource leak into x11-base/xorg-server
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for pixmap leak
plasma-workspace_4.10.4-r1_pixmapleak.patch (text/plain), 1.46 KB, created by
BobbyK
on 2013-07-03 00:47:40 UTC
(
hide
)
Description:
Patch for pixmap leak
Filename:
MIME Type:
Creator:
BobbyK
Created:
2013-07-03 00:47:40 UTC
Size:
1.46 KB
patch
obsolete
>--- plasma/generic/applets/systemtray/protocols/fdo/x11embedcontainer.cpp 2013-05-28 14:38:21.000000000 -0400 >+++ plasma/generic/applets/systemtray/protocols/fdo/x11embedcontainer.cpp 2013-07-02 13:53:47.000000000 -0400 >@@ -194,8 +194,7 @@ > > // Taking a detour via a QPixmap is unfortunately the only way we can get > // the window contents into Qt's backing store. >- QPixmap pixmap(size()); >- pixmap = toX11Pixmap(pixmap); >+ QPixmap pixmap = toX11Pixmap(QPixmap(size())); > pixmap.fill(Qt::transparent); > XRenderComposite(x11Info().display(), PictOpSrc, d->picture, None, pixmap.x11PictureHandle(), > 0, 0, 0, 0, 0, 0, width(), height()); >@@ -234,14 +233,16 @@ > { > if(pix.handle() != 0) // X11 pixmap > return pix; >+ QPixmap ret; > Pixmap xpix = XCreatePixmap(pix.x11Info().display(), RootWindow(pix.x11Info().display(), pix.x11Info().screen()), > pix.width(), pix.height(), QX11Info::appDepth()); >- QPixmap wrk = QPixmap::fromX11Pixmap(xpix); >+ { >+ QPixmap wrk = QPixmap::fromX11Pixmap(xpix, QPixmap::ExplicitlyShared); > QPainter paint(&wrk); > paint.drawPixmap(0, 0, pix); > paint.end(); >- QPixmap ret = wrk.copy(); >- wrk = QPixmap(); // reset, so that xpix can be freed (QPixmap does not own it) >+ ret = wrk.copy(); >+ } // free resources so that xpix can be freed (QPixmap does not own it) > XFreePixmap(pix.x11Info().display(), xpix); > return ret; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 447862
: 352492