Changeset 139870 in webkit


Ignore:
Timestamp:
Jan 16, 2013 4:13:45 AM (11 years ago)
Author:
zeno.albisser@digia.com
Message:

GraphicsSurfaceGLX is leaking an XWindow
https://bugs.webkit.org/show_bug.cgi?id=107002

The XWindow created as a backing surface for
the GraphicsSurfaceGLX needs to be destroyed
together with the GraphicsSurface.

Reviewed by Noam Rosenthal.

  • platform/graphics/surfaces/glx/GraphicsSurfaceGLX.cpp:

(WebCore::GraphicsSurfacePrivate::clear):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r139866 r139870  
     12013-01-16  Zeno Albisser  <zeno@webkit.org>
     2
     3        GraphicsSurfaceGLX is leaking an XWindow
     4        https://bugs.webkit.org/show_bug.cgi?id=107002
     5
     6        The XWindow created as a backing surface for
     7        the GraphicsSurfaceGLX needs to be destroyed
     8        together with the GraphicsSurface.
     9
     10        Reviewed by Noam Rosenthal.
     11
     12        * platform/graphics/surfaces/glx/GraphicsSurfaceGLX.cpp:
     13        (WebCore::GraphicsSurfacePrivate::clear):
     14
    1152013-01-16  Pablo Flouret  <pablof@motorola.com>
    216
  • trunk/Source/WebCore/platform/graphics/surfaces/glx/GraphicsSurfaceGLX.cpp

    r139738 r139870  
    438438            XFreePixmap(m_display, m_xPixmap);
    439439            m_xPixmap = 0;
     440        }
     441
     442        if (m_surface) {
     443            XDestroyWindow(m_display, m_surface);
     444            m_surface = 0;
    440445        }
    441446
Note: See TracChangeset for help on using the changeset viewer.