[GStreamer] release graphics resources

Destroy GPU resources when not needed anymore.