Skip to content

Commit

Permalink
Free Metrics object from SharedState when done.
Browse files Browse the repository at this point in the history
  • Loading branch information
jemc committed Jan 26, 2015
1 parent 96f8eda commit 007040c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vm/shared_state.cpp
Expand Up @@ -80,6 +80,11 @@ namespace rubinius {
console_ = 0;
}

if(metrics_) {
delete metrics_;
metrics_ = 0;
}

delete tool_broker_;
delete global_cache;
delete world_;
Expand Down

0 comments on commit 007040c

Please sign in to comment.