Fixed release graphics resources

Change-Id: I7043207b1b260ad4b7865f6247045149ca2fa81a