Merge pull request #45 from Z-bin/fixDisplay-dev

Release the resources requested by XOpenDisplay
This commit is contained in:
chenlelin 2020-07-21 16:44:53 +08:00 committed by GitHub
commit ed28813e0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -47,6 +47,9 @@ int main(int argc, char *argv[])
QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
#endif
}
if (NULL != disp) {
XCloseDisplay(disp);
}
QApplication a(argc, argv);