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:
Marshall Greenblatt 2011-12-31 01:01:42 +00:00
parent 3d734d9f90
commit 8d1abe7d70
1 changed files with 3 additions and 2 deletions

View File

@ -25,8 +25,7 @@ char szWorkingDir[512]; // The current working directory
extern CefRefPtr<ClientHandler> g_handler; extern CefRefPtr<ClientHandler> g_handler;
void destroy(void) { void destroy(void) {
CefShutdown(); CefQuitMessageLoop();
exit(0);
} }
void TerminationSignalHandler(int signatl) { void TerminationSignalHandler(int signatl) {
@ -426,6 +425,8 @@ int main(int argc, char *argv[]) {
CefRunMessageLoop(); CefRunMessageLoop();
CefShutdown();
return 0; return 0;
} }