fix memory leak in wxScreenDC, fixes #13249

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67814 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Paul Cornett 2011-05-31 17:16:53 +00:00
parent 40a35c1f87
commit 769c3372a2

View File

@ -13,13 +13,8 @@
#include "wx/dcscreen.h"
#include "wx/gtk/dcscreen.h"
#ifndef WX_PRECOMP
#include "wx/window.h"
#endif
#include <gdk/gdk.h>
#include <gdk/gdkx.h>
#include <gtk/gtk.h>
#include <gdk/gdkx.h>
//-----------------------------------------------------------------------------
// wxScreenDCImpl
@ -58,6 +53,8 @@ void wxScreenDCImpl::Init()
wxScreenDCImpl::~wxScreenDCImpl()
{
g_object_unref(m_context);
gdk_gc_set_subwindow( m_penGC, GDK_CLIP_BY_CHILDREN );
gdk_gc_set_subwindow( m_brushGC, GDK_CLIP_BY_CHILDREN );
gdk_gc_set_subwindow( m_textGC, GDK_CLIP_BY_CHILDREN );