Skip to content

Commit

Permalink
memory leak fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Sarazan committed Feb 7, 2013
1 parent 3cbb8dc commit e8bb74d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Classes/CCInstrumentingProfiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@
#ifdef HOOKSHOT_ENABLED

#ifdef __cplusplus
#import <string>

class CCStackProfiler {
const char *_name;
const std::string _name;
public:
CCStackProfiler(const char *className, const char *name);

Expand Down
2 changes: 1 addition & 1 deletion Classes/CCInstrumentingProfiler.mm
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ static inline void logAfter(id instance, Class cls, SEL selector)

CCStackProfiler::~CCStackProfiler()
{
threadData()->finishCall(nil, _name);
threadData()->finishCall(nil, _name.c_str());
}


Expand Down

0 comments on commit e8bb74d

Please sign in to comment.