Fixed menu deallocation

Added tracking for OGL programs