Skip to content

Commit

Permalink
libdeng|Str: No checking for AutoStr deletion in release builds
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Aug 26, 2012
1 parent bbacdda commit 9885b6c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doomsday/libdeng/src/str.c
Expand Up @@ -204,10 +204,12 @@ void Str_Delete(Str* str)
{
DENG_ASSERT(!Garbage_IsTrashed(str));

#if 0 // use this is release builds if encountering Str/AutoStr errors
if(Garbage_IsTrashed(str))
{
LegacyCore_FatalError("Str_Delete: Trying to manually delete an AutoStr!");
}
#endif

deleteString(str);
}
Expand Down

0 comments on commit 9885b6c

Please sign in to comment.