rem: free(bPtr);
add: wfree(bPtr);
context: WMCreateCustomButton(WMWidget *parent, int behaviourMask){    Button *bPtr;        bPtr = wmalloc(sizeof(Button));    memset(bPtr, 0, sizeof(Button));    bPtr->widgetClass = WC_Button;        bPtr->view = W_CreateView(W_VIEW(parent));    if (!bPtr->view) {	free(bPtr);	return NULL;    }    bPtr->view->self = bPtr;    bPtr->flags.type = 0;    bPtr->flags.springLoaded = (behaviourMask & WBBSpringLoadedMask)!=0;    bPtr->flags.pushIn = (behaviourMask & WBBPushInMask)!=0;    bPtr->flags.pushChange = (behaviourMask & WBBPushChangeMask)!=0;    bPtr->flags.pushLight = (behaviourMask & WBBPushLightMask)!=0;    bPtr->flags.stateLight = (behaviourMask & WBBStateLightMask)!=0;    bPtr->flags.stateChange = (behaviourMask & WBBStateChangeMask)!=0;    bPtr->flags.statePush = (behaviourMask & WBBStatePushMask)!=0;        W_ResizeView(bPtr->view, DEFAULT_BUTTON_WIDTH, DEFAULT_BUTTON_HEIGHT);    bPtr->flags.alignment = DEFAULT_BUTTON_ALIGNMENT;    bPtr->flags.bordered = DEFAULT_BUTTON_IS_BORDERED;        bPtr->flags.enabled = 1;    WMCreateEventHandler(bPtr->view, ExposureMask|StructureNotifyMask,			 handleEvents, bPtr);    WMCreateEventHandler(bPtr->view, ButtonPressMask|ButtonReleaseMask			 |EnterWindowMask|LeaveWindowMask, 			 handleActionEvents, bPtr);    W_ResizeView(bPtr->view, DEFAULT_BUTTON_WIDTH, DEFAULT_BUTTON_HEIGHT);    bPtr->flags.alignment = DEFAULT_BUTTON_ALIGNMENT;    bPtr->flags.bordered = DEFAULT_BUTTON_IS_BORDERED;    return bPtr;}