ofxUI Dynamic drop down crash

Is anyone having issues with deleting widgets in ofxUI?

When I use the Dynamic drop down example and try to delete from the list it crashes.

I get

malloc: *** error for object 0x254d130: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug

This specifically happens at the destructor

ofxUIWidget::~ofxUIWidget()
{
    
    if(rect != NULL)
    {
        delete rect;       ///crashes here
    }
    if(paddedRect != NULL)
    {
        delete paddedRect;
    }
}

did you try this fix?

cheers,