patch applied for clearing m_data object upon closing

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25765 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2004-02-12 07:16:44 +00:00
parent 88f226fa98
commit 89a69c601d
2 changed files with 18 additions and 0 deletions

View File

@@ -298,6 +298,15 @@ bool wxClipboard::AddData( wxDataObject *data )
void wxClipboard::Close()
{
m_open = false ;
// Get rid of cached object. If this is not done copying from another application will
// only work once
if (m_data)
{
delete m_data;
m_data = (wxDataObject*) NULL;
}
}
bool wxClipboard::IsSupported( const wxDataFormat &dataFormat )

View File

@@ -298,6 +298,15 @@ bool wxClipboard::AddData( wxDataObject *data )
void wxClipboard::Close()
{
m_open = false ;
// Get rid of cached object. If this is not done copying from another application will
// only work once
if (m_data)
{
delete m_data;
m_data = (wxDataObject*) NULL;
}
}
bool wxClipboard::IsSupported( const wxDataFormat &dataFormat )