Set the members of a destroyed debug_context to invalid values.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13774 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2005-07-19 23:14:16 +00:00
parent a52d8b3391
commit a79265708d
1 changed files with 4 additions and 0 deletions

View File

@ -44,6 +44,10 @@ destroy_debug_context(debug_context *context)
if (context) {
if (context->reply_port >= 0)
delete_port(context->reply_port);
context->team = -1;
context->nub_port = -1;
context->reply_port = -1;
}
}