mirror of
https://github.com/NickHu/sway
synced 2024-12-27 21:58:11 +01:00
fclose /proc/modules when we're done with it
This commit is contained in:
parent
4ef60e7c09
commit
1756a4f2da
1 changed files with 2 additions and 1 deletions
|
@ -42,10 +42,11 @@ void detect_nvidia() {
|
||||||
if (strstr(line, "nvidia")) {
|
if (strstr(line, "nvidia")) {
|
||||||
fprintf(stderr, "\x1B[1;31mWarning: Proprietary nvidia drivers do NOT support Wayland. Use nouveau.\x1B[0m\n");
|
fprintf(stderr, "\x1B[1;31mWarning: Proprietary nvidia drivers do NOT support Wayland. Use nouveau.\x1B[0m\n");
|
||||||
free(line);
|
free(line);
|
||||||
return;
|
break;
|
||||||
}
|
}
|
||||||
free(line);
|
free(line);
|
||||||
}
|
}
|
||||||
|
fclose(f);
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char **argv) {
|
int main(int argc, char **argv) {
|
||||||
|
|
Loading…
Reference in a new issue