Fixed memory leak in GstWrapper handle