]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/dataobj.cpp
simplify/cleanup wxTheXXXList and wxGDIObject code (patch 1452023 from Paul Cornett)
[wxWidgets.git] / src / gtk1 / dataobj.cpp
index 1e986e1ce02877e2ce3510c5f6f5e9e023b16692..7fdc0744fbbb03604cf41d6d907672d7f5f35b83 100644 (file)
@@ -108,7 +108,9 @@ wxDataFormatId wxDataFormat::GetType() const
 
 wxString wxDataFormat::GetId() const
 {
-    wxString ret = wxString::FromAscii( gdk_atom_name( m_format ) );
+    gchar* atom_name = gdk_atom_name( m_format );
+    wxString ret = wxString::FromAscii( atom_name );
+    g_free(atom_name);
     return ret;
 }