Fix some leaks in glwidget. cf #80

Authored by alcinos on Mar 1 2019, 10:59 AM.