(camera/v4l2) v4l_init - free v4l object at error

This commit is contained in:
twinaphex 2013-11-11 03:52:07 +01:00
parent 96c06b5b26
commit 9284bb6b59

View File

@ -581,6 +581,8 @@ static void *v4l_init(void)
error:
RARCH_ERR("V4L2: Failed to initialize camera.\n");
if (v4l)
free(v4l);
return NULL;
}