Skip to content

Commit

Permalink
Fixed: Memory leak in control binding subsystem
Browse files Browse the repository at this point in the history
  • Loading branch information
danij-deng committed Oct 26, 2011
1 parent e6c68c5 commit 8624338
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doomsday/engine/portable/src/b_main.c
Expand Up @@ -267,7 +267,7 @@ int B_NewIdentifier(void)

const char* B_ParseContext(const char* desc, bcontext_t** bc)
{
ddstring_t* str = Str_New();
ddstring_t* str;

*bc = 0;
if(!strchr(desc, ':'))
Expand All @@ -276,6 +276,7 @@ const char* B_ParseContext(const char* desc, bcontext_t** bc)
return desc;
}

str = Str_New();
desc = Str_CopyDelim(str, desc, ':');
*bc = B_ContextByName(Str_Text(str));
Str_Delete(str);
Expand Down

0 comments on commit 8624338

Please sign in to comment.