]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/listbox.cpp
generate key events for Space/Enter in addition to the activate events, as wxMSW...
[wxWidgets.git] / src / gtk1 / listbox.cpp
index b81275e62957ff6bca14a12ff546ad775558a0d6..c84fce54527ea6a99056dd506d1220ac50545b6f 100644 (file)
@@ -642,8 +642,7 @@ void wxListBox::DoSetItemClientObject( int n, wxClientData* clientData )
     wxNode *node = m_clientList.Nth( n );
     wxCHECK_RET( node, wxT("invalid index in wxListBox::DoSetItemClientObject") );
 
-    wxClientData *cd = (wxClientData*) node->Data();
-    delete cd;
+    // wxItemContainer already deletes data for us
 
     node->SetData( (wxObject*) clientData );
 }