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:
@@ -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 )
|
||||
|
@@ -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 )
|
||||
|
Reference in New Issue
Block a user