gix freeing of gpu memory