Made objects clear more handlers on deletion, also scramble some methods and all database access wrappers to avoid an object memory instance being accessed after it has been deleted. See #509.

This commit is contained in:
Griatch 2014-06-15 12:27:48 +02:00
parent 81aa43933c
commit 3a6a8d5c48
3 changed files with 34 additions and 4 deletions

View file

@ -542,7 +542,7 @@ class CmdDestroy(MuxCommand):
# do the deletion
okay = obj.delete()
if not okay:
string += "\nERROR: %s not deleted, probably because at_obj_delete() returned False." % objname
string += "\nERROR: %s not deleted, probably because delete() returned False." % objname
else:
string += "\n%s was destroyed." % objname
if had_exits: