Navigation Menu

Skip to content

Commit

Permalink
Fixed minor memory leak in the Metal renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Dec 8, 2017
1 parent cac4e31 commit 5182c23
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/render/metal/SDL_render_metal.m
Expand Up @@ -736,6 +736,10 @@ static void METAL_ActivateRenderer(SDL_Renderer * renderer)
}];
#endif
[data.mtlcmdbuffer commit];
#if !__has_feature(objc_arc)
[data.mtlcmdencoder release];
[data.mtlcmdbuffer release];
#endif
data.beginScene = YES;
}

Expand Down

0 comments on commit 5182c23

Please sign in to comment.