diff options
author | Joe Zhao <ztuowen@gmail.com> | 2015-09-06 15:32:24 -0600 |
---|---|---|
committer | Joe Zhao <ztuowen@gmail.com> | 2015-09-06 15:32:24 -0600 |
commit | 41ce2c3aca241a3866246e68fc7b91e6151e2f51 (patch) | |
tree | 699b05526b9755a9068036439af3a23d4aa26c80 /logging.cpp | |
parent | 83f3214e91932ef2bdb4c6d75dc3472938008144 (diff) | |
download | pomodori-41ce2c3aca241a3866246e68fc7b91e6151e2f51.tar.gz pomodori-41ce2c3aca241a3866246e68fc7b91e6151e2f51.tar.bz2 pomodori-41ce2c3aca241a3866246e68fc7b91e6151e2f51.zip |
fixed error 139
Diffstat (limited to 'logging.cpp')
-rw-r--r-- | logging.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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 |