Fixed several stupid, annoying segfaults in the object deletion code

Signed-off-by: Olaf Kirch <okir@suse.de>