#include "wx/xml/xml.h"
+
class wxXmlResourceDataRecord
{
public:
}
else
{
- (*rec_var)->id = wxWindow::NewControlId();
+ (*rec_var)->id = wxWindowBase::NewControlId();
}
}
if (rec)
{
CleanXRCID_Record(rec->next);
+
+ // if we had generated the value of this id automatically, release it
+ // now that we don't need it any longer
+ if ( wxWindow::IsAutoGeneratedId(rec->id) )
+ wxWindow::ReleaseControlId(rec->id);
+
free(rec->key);
delete rec;
}