[Commits] SDL: Fixed minor memory leak in the Metal renderer

libsdl.org revision control commits-owner at libsdl.org
Fri Dec 8 11:35:22 PST 2017


details:   https://hg.libsdl.org/SDL/rev/24c1d2de7a09
changeset: 11740:24c1d2de7a09
user:      Sam Lantinga <slouken at libsdl.org>
date:      Fri Dec 08 11:35:19 2017 -0800
description:
Fixed minor memory leak in the Metal renderer

diffstat:

 src/render/metal/SDL_render_metal.m |  4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diffs (14 lines):

diff -r d6c857a74735 -r 24c1d2de7a09 src/render/metal/SDL_render_metal.m
--- a/src/render/metal/SDL_render_metal.m	Fri Dec 08 11:34:32 2017 -0800
+++ b/src/render/metal/SDL_render_metal.m	Fri Dec 08 11:35:19 2017 -0800
@@ -736,6 +736,10 @@
     }];
 #endif
     [data.mtlcmdbuffer commit];
+#if !__has_feature(objc_arc)
+    [data.mtlcmdencoder release];
+    [data.mtlcmdbuffer release];
+#endif
     data.beginScene = YES;
 }
 


More information about the commits mailing list