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:
parent
40a35c1f87
commit
769c3372a2
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user