[Commits] SDL: wayland: Fixed freeing memory of SDL_malloc() with plain fr...

libsdl.org revision control commits-owner at libsdl.org
Thu May 25 14:10:30 PDT 2017


details:   https://hg.libsdl.org/SDL/rev/06a801c7a54f
changeset: 11030:06a801c7a54f
user:      Philipp Wiesemann <philipp.wiesemann at arcor.de>
date:      Thu May 25 23:00:58 2017 +0200
description:
wayland: Fixed freeing memory of SDL_malloc() with plain free().

diffstat:

 src/video/wayland/SDL_waylandvideo.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 938d2ced5244 -r 06a801c7a54f src/video/wayland/SDL_waylandvideo.c
--- a/src/video/wayland/SDL_waylandvideo.c	Thu May 25 23:00:43 2017 +0200
+++ b/src/video/wayland/SDL_waylandvideo.c	Thu May 25 23:00:58 2017 +0200
@@ -448,7 +448,7 @@
     }
 
     SDL_free(data->classname);
-    free(data);
+    SDL_free(data);
     _this->driverdata = NULL;
 }
 


More information about the commits mailing list