From fa41b170a36c4a73364a8d917cfceab85366ea23 Mon Sep 17 00:00:00 2001 From: Mattia Barbon Date: Sun, 3 Jul 2005 22:31:36 +0000 Subject: [PATCH] Applied patch by Johan van Zyl. [ 1231711 ] Using motif clipboard causes application crash git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34808 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/motif/clipbrd.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/motif/clipbrd.cpp b/src/motif/clipbrd.cpp index 4af95a45ad..2b795bae13 100644 --- a/src/motif/clipbrd.cpp +++ b/src/motif/clipbrd.cpp @@ -208,7 +208,9 @@ void wxClipboard::Clear() for( wxDataIdToDataObjectList::compatibility_iterator node2 = m_idToObject.GetFirst(); node2; node2 = node2->GetNext() ) - delete node->GetData(); + { + delete node2->GetData(); + } m_idToObject.Clear(); } -- 2.50.0