Title: [160269] trunk/Source/WebCore
- Revision
- 160269
- Author
- g...@gnome.org
- Date
- 2013-12-07 03:50:34 -0800 (Sat, 07 Dec 2013)
Log Message
ubuntu software center hits _XReadEvents() error
https://bugs.webkit.org/show_bug.cgi?id=123480
Reviewed by Martin Robinson.
* platform/gtk/WidgetBackingStoreGtkX11.cpp:
(WebCore::WidgetBackingStoreGtkX11::~WidgetBackingStoreGtkX11): clear the surface
before freeing the associated pixmap.
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (160268 => 160269)
--- trunk/Source/WebCore/ChangeLog 2013-12-07 06:41:33 UTC (rev 160268)
+++ trunk/Source/WebCore/ChangeLog 2013-12-07 11:50:34 UTC (rev 160269)
@@ -1,3 +1,14 @@
+2013-12-07 Gustavo Noronha Silva <g...@gnome.org>
+
+ ubuntu software center hits _XReadEvents() error
+ https://bugs.webkit.org/show_bug.cgi?id=123480
+
+ Reviewed by Martin Robinson.
+
+ * platform/gtk/WidgetBackingStoreGtkX11.cpp:
+ (WebCore::WidgetBackingStoreGtkX11::~WidgetBackingStoreGtkX11): clear the surface
+ before freeing the associated pixmap.
+
2013-12-06 Tim Horton <timothy_hor...@apple.com>
[mac] Keep around more decoded image data, since it's purgeable
Modified: trunk/Source/WebCore/platform/gtk/WidgetBackingStoreGtkX11.cpp (160268 => 160269)
--- trunk/Source/WebCore/platform/gtk/WidgetBackingStoreGtkX11.cpp 2013-12-07 06:41:33 UTC (rev 160268)
+++ trunk/Source/WebCore/platform/gtk/WidgetBackingStoreGtkX11.cpp 2013-12-07 11:50:34 UTC (rev 160269)
@@ -51,6 +51,8 @@
WidgetBackingStoreGtkX11::~WidgetBackingStoreGtkX11()
{
+ // The pixmap needs to exist when the surface is destroyed, so begin by clearing it.
+ m_surface.clear();
XFreePixmap(m_display, m_pixmap);
XFreeGC(m_display, m_gc);
}
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes