Fixed minor memory leak in the Metal renderer

This commit is contained in:
Sam Lantinga 2017-12-08 11:35:19 -08:00
parent cac4e31261
commit 5182c23c6b

View File

@ -736,6 +736,10 @@ METAL_RenderPresent(SDL_Renderer * renderer)
}];
#endif
[data.mtlcmdbuffer commit];
#if !__has_feature(objc_arc)
[data.mtlcmdencoder release];
[data.mtlcmdbuffer release];
#endif
data.beginScene = YES;
}