mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-02-03 10:13:11 +00:00
video_lima: plug potential memory leak
This commit is contained in:
parent
c5547bf9e1
commit
117a1ff64b
@ -574,7 +574,7 @@ static void *lima_gfx_init(const video_info_t *video, const input_driver_t **inp
|
||||
vid->rgui_alpha = 1.0f;
|
||||
|
||||
lima = calloc(1, sizeof(limare_data_t));
|
||||
if (!lima) return NULL;
|
||||
if (!lima) goto fail;
|
||||
|
||||
/* Request the Exynos DRM backend for rendering. */
|
||||
limare_config.type = LIMARE_WINDOWSYS_DRM;
|
||||
|
Loading…
x
Reference in New Issue
Block a user