Fix use-after-free in simtk_textview_properties_new
Fix use-after-free in simtk_widget_new
Fix mem-leaks in simtk_widget_new