From 41ce2c3aca241a3866246e68fc7b91e6151e2f51 Mon Sep 17 00:00:00 2001 From: Joe Zhao Date: Sun, 6 Sep 2015 15:32:24 -0600 Subject: fixed error 139 --- logging.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'logging.cpp') diff --git a/logging.cpp b/logging.cpp index 798f00f..e91f90f 100644 --- a/logging.cpp +++ b/logging.cpp @@ -28,7 +28,7 @@ void log(tres* res,int code) if( rc ){ fprintf(stderr, "Can't open database: %s\n", sqlite3_errmsg(db)); sqlite3_close(db); - exit(0); + return; } sprintf(sqlop,"insert into log (Cat) Values ('%s');",res->reason); rc = sqlite3_exec(db, sqlop, NULL, 0, &zErrMsg); @@ -38,7 +38,6 @@ void log(tres* res,int code) } sqlite3_close(db); } - delete res->reason; delete res; tray_deactivate(); } \ No newline at end of file -- cgit v1.2.3-70-g09d2