[arch-commits] Commit in kdelibs/trunk (fix-xfreepixmap-call.patch)

Andrea Scarpino andrea at nymeria.archlinux.org
Fri May 10 13:08:21 EDT 2013


    Date: Friday, May 10, 2013 @ 19:08:21
  Author: andrea
Revision: 185045

upgpkg: kdelibs 4.10.3-3

Add the patch

Added:
  kdelibs/trunk/fix-xfreepixmap-call.patch

----------------------------+
 fix-xfreepixmap-call.patch |   24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

Added: fix-xfreepixmap-call.patch
===================================================================
--- fix-xfreepixmap-call.patch	                        (rev 0)
+++ fix-xfreepixmap-call.patch	2013-05-10 17:08:21 UTC (rev 185045)
@@ -0,0 +1,24 @@
+commit 9323adac35d40da69e3cb18504340e984c4afd05
+Author: Anne-Marie Mahfouf <annma at kde.org>
+Date:   Fri May 10 17:12:33 2013 +0200
+
+    Fix crash when quitting apps
+    
+    Backport to 4.10 branch
+    
+    CCBUG: 319137
+
+diff --git a/plasma/private/dialogshadows.cpp b/plasma/private/dialogshadows.cpp
+index b54fb1a..1925670 100644
+--- a/plasma/private/dialogshadows.cpp
++++ b/plasma/private/dialogshadows.cpp
+@@ -336,6 +336,9 @@ void DialogShadows::Private::freeX11Pixmaps()
+ {
+ #ifdef Q_WS_X11
+     foreach (const QPixmap &pixmap, m_shadowPixmaps) {
++        if (!QX11Info::display()) {
++            return;
++        }
+         if (!pixmap.isNull()) {
+             XFreePixmap(QX11Info::display(), pixmap.handle());
+         }



More information about the arch-commits mailing list