merge wxmac change from the 350 branch
svn: r3366
This commit is contained in:
parent
2707426cdf
commit
a0e11bb2d2
|
@ -173,8 +173,7 @@ Bool wxSlider::Create(wxPanel *panel, wxFunction func, char *label, int value,
|
||||||
{
|
{
|
||||||
void *rc;
|
void *rc;
|
||||||
rc = WRAP_SAFEREF(this);
|
rc = WRAP_SAFEREF(this);
|
||||||
refcon = rc;
|
SetControlReference(cMacControl, (long)rc);
|
||||||
SetControlReference(cMacControl, (long)refcon);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (label) {
|
if (label) {
|
||||||
|
@ -219,10 +218,10 @@ wxSlider::~wxSlider(void)
|
||||||
{
|
{
|
||||||
void *rc;
|
void *rc;
|
||||||
|
|
||||||
::DisposeControl(cMacControl);
|
|
||||||
|
|
||||||
rc = (void *)GetControlReference(cMacControl);
|
rc = (void *)GetControlReference(cMacControl);
|
||||||
FREE_SAFEREF(rc);
|
FREE_SAFEREF(rc);
|
||||||
|
|
||||||
|
::DisposeControl(cMacControl);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user