Fixed bug, still memory leak in mesh loading.