Update UIWidget.cpp

Visual Leak Detector detected memory leaks!