1
0
Fork 0

call global instance destructor

This commit is contained in:
Jan Steemann 2014-02-02 09:23:04 +01:00
parent d2abd8332c
commit d19f3fc7dd
1 changed files with 5 additions and 0 deletions

View File

@ -458,6 +458,11 @@ int main (int argc, char* argv[]) {
TRIAGENS_REST_SHUTDOWN; TRIAGENS_REST_SHUTDOWN;
TRI_GlobalExitFunction(res, NULL); TRI_GlobalExitFunction(res, NULL);
if (ArangoInstance != 0) {
delete ArangoInstance;
ArangoInstance = 0;
}
return res; return res;
} }