fix glx resource leak

Change-Id: I013676d2f4caa0479c917a7f833966be8f0b8009
small cosmetic clean-up

Change-Id: Idce2856f656576dc58e137800e11da0178eb5201