From c1014ee30539ed692025a394c504827a8642f3c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Flor=C3=A9al=20Toumikian?= Date: Sat, 5 Apr 2014 19:59:31 +0200 Subject: [PATCH] Moved dir_list_free --- gfx/context/drm_egl_ctx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/context/drm_egl_ctx.c b/gfx/context/drm_egl_ctx.c index b43b9c05b8..afb734c67e 100644 --- a/gfx/context/drm_egl_ctx.c +++ b/gfx/context/drm_egl_ctx.c @@ -250,7 +250,6 @@ static bool gfx_ctx_init(void *data) nextgpu: if (gpu_index == gpu_descriptors->size) { - dir_list_free(gpu_descriptors); RARCH_ERR("[KMS/EGL]: Couldn't find a suitable DRM device.\n"); goto error; } @@ -332,6 +331,7 @@ nextgpu: goto nextgpu; } + dir_list_free(gpu_descriptors); return true; error: