Metal: Free pipeline descriptor on error.

This commit is contained in:
Corentin Wallez 2017-07-20 14:30:19 -04:00 committed by Corentin Wallez
parent 8846433ae7
commit 3ef4121d4e
1 changed files with 1 additions and 0 deletions

View File

@ -110,6 +110,7 @@ namespace metal {
if (error != nil) {
NSLog(@" error => %@", error);
builder->HandleError("Error creating pipeline state");
[descriptor release];
return;
}