Don't delete session objects...

... disc->GetSession() doesn't allocate a new object, so delete
will cause problems later on.
This commit is contained in:
Jessica Hamilton
2014-05-22 19:38:55 +12:00
parent d1c05d9b22
commit 549fcbf51a
@@ -94,7 +94,6 @@ scan_partition(int fd, partition_data *partition, void *cookie)
child->block_size = session->BlockSize();
child->flags |= session->Flags();
child->type = strdup(session->Type());
delete session;
if (!child->type) {
error = B_NO_MEMORY;
break;