Skip to content

Commit

Permalink
set deleted items to NULL
Browse files Browse the repository at this point in the history
  • Loading branch information
mojca committed Jun 24, 2014
1 parent 3acb9f4 commit 6a60ebf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions project/src/run_picoscope.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,8 @@ int main(int argc, char** argv)
cerr << "Timing: " << t.GetSecondsDouble() << "s\n";
}

delete pico;
delete meas;
delete pico; pico = NULL;
delete meas; meas = NULL;


} catch(Picoscope::PicoscopeException& ex) {
Expand Down

0 comments on commit 6a60ebf

Please sign in to comment.