Skip to content

Commit

Permalink
DRACI: Update comment regarding SharedPtr/ScopedPtr.
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Schickel committed Nov 16, 2011
1 parent c5ff6b4 commit 0123673
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion engines/draci/draci.cpp
Expand Up @@ -359,10 +359,11 @@ void DraciEngine::handleEvents() {
DraciEngine::~DraciEngine() {
// Dispose your resources here

// If the common library supported STL's scoped_ptr<>, then wrapping
// If the common library supported Boost's scoped_ptr<>, then wrapping
// all the following pointers and many more would be appropriate. So
// far, there is only SharedPtr, which I feel being an overkill for
// easy deallocation.
// TODO: We have ScopedPtr nowadays. Maybe should adapt this code then?
delete _smallFont;
delete _bigFont;

Expand Down

0 comments on commit 0123673

Please sign in to comment.