--- DarthVader/ToFLevel2/src/TimeOfFlightLevel2.cpp 2006/09/06 08:05:10 1.2 +++ DarthVader/ToFLevel2/src/TimeOfFlightLevel2.cpp 2011/11/29 15:20:16 1.3 @@ -191,6 +191,8 @@ // printf("\nClose the connection to the database... \n"); dbc->Close(); + delete dbc; + dbc = 0; printf("...connection terminated!\n\n"); // // Close redirection if the case.