modetest: close the device on exit

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Ezequiel Garcia <ezequiel@collabora.com>
Tested-by: Ezequiel Garcia <ezequiel@collabora.com>
main
Emil Velikov 2020-04-14 11:31:07 +01:00 committed by Emil Velikov
parent 53fde76ce3
commit ef58af6dfc
1 changed files with 1 additions and 0 deletions

View File

@ -2150,6 +2150,7 @@ int main(int argc, char **argv)
}
free_resources(dev.resources);
drmClose(dev.fd);
return 0;
}