X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2d120f8391920145647ec10e84629bc21fa9f1bb..002f42185d25472085d36a077d1428d71c781e5b:/src/motif/control.cpp diff --git a/src/motif/control.cpp b/src/motif/control.cpp index a58fd0b21d..090eae88f8 100644 --- a/src/motif/control.cpp +++ b/src/motif/control.cpp @@ -42,7 +42,7 @@ wxControl::~wxControl() if (parent) { if (parent->GetDefaultItem() == (wxButton*) this) - parent->SetDefaultItem(NULL); + parent->SetDefaultItem((wxButton*) NULL); } } @@ -83,7 +83,7 @@ wxString wxControl::GetLabel() const } else { - XmStringFree(text); + // XmStringFree(text); return wxEmptyString; } }