Linux: Fix cefclient shutdown crash.
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@450 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
parent
3d734d9f90
commit
8d1abe7d70
|
@ -25,8 +25,7 @@ char szWorkingDir[512]; // The current working directory
|
|||
extern CefRefPtr<ClientHandler> g_handler;
|
||||
|
||||
void destroy(void) {
|
||||
CefShutdown();
|
||||
exit(0);
|
||||
CefQuitMessageLoop();
|
||||
}
|
||||
|
||||
void TerminationSignalHandler(int signatl) {
|
||||
|
@ -426,6 +425,8 @@ int main(int argc, char *argv[]) {
|
|||
|
||||
CefRunMessageLoop();
|
||||
|
||||
CefShutdown();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue