Clear targets in wxClipboard::Clear().
This seems to fix a memory leak rendering clipboard unusable after running wxGTK applications for a long time (see #10813). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61533 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -564,6 +564,8 @@ bool wxClipboard::DoIsSupported(const wxDataFormat& format)
|
|||||||
|
|
||||||
void wxClipboard::Clear()
|
void wxClipboard::Clear()
|
||||||
{
|
{
|
||||||
|
gtk_selection_clear_targets( m_clipboardWidget, GTKGetClipboardAtom() );
|
||||||
|
|
||||||
if ( gdk_selection_owner_get(GTKGetClipboardAtom()) ==
|
if ( gdk_selection_owner_get(GTKGetClipboardAtom()) ==
|
||||||
m_clipboardWidget->window )
|
m_clipboardWidget->window )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user