rem: free(dPtr);
add: wfree(dPtr);
context: CreateDoubleTest(WMWidget *parent, char *text){    DoubleTest *dPtr;    if (!DoubleTestClass)	InitDoubleTest(WMWidgetScreen(parent));        /* allocate some storage for our new widget instance */    dPtr = wmalloc(sizeof(DoubleTest));    /* initialize it */    memset(dPtr, 0, sizeof(DoubleTest));    /* set the class ID */    dPtr->widgetClass = DoubleTestClass;        dPtr->view = W_CreateView(W_VIEW(parent));    if (!dPtr->view) {	free(dPtr);	return NULL;    }    /* always do this */    dPtr->view->self = dPtr;        dPtr->text = wstrdup(text);    WMCreateEventHandler(dPtr->view, ExposureMask /* this allows us to know when we should paint */			 |StructureNotifyMask, /* this allows us to know things like when we are destroyed */			 handleEvents, dPtr);    WMCreateEventHandler(dPtr->view, ButtonPressMask,handleActionEvents, dPtr);    return dPtr;}