Fix use-after-free in simtk_textview_properties_new
Fix use-after-free in simtk_widget_new
Fix mem-leaks in simtk_widget_new
Merge pull request #2 from ebfe/fix-use-after-free

Fix use after free