Revert "Partitioning system: avoid leakage of resource"
This reverts commit f6bd30f2af
.
This commit is contained in:
parent
2e454dffc2
commit
d1c05d9b22
@ -54,14 +54,10 @@ identify_partition(int fd, partition_data *partition, void **cookie)
|
||||
if (disc != NULL && disc->InitCheck() == B_OK) {
|
||||
// If we have only a single session then we can let the file system
|
||||
// drivers play directly with the device.
|
||||
Session *session = disc->GetSession(1);
|
||||
if (session != NULL) {
|
||||
if (disc->GetSession(1) != NULL)
|
||||
result = 0.9f;
|
||||
delete session;
|
||||
}
|
||||
else
|
||||
result = 0.1f;
|
||||
|
||||
*cookie = static_cast<void*>(disc);
|
||||
} else
|
||||
delete disc;
|
||||
|
Loading…
Reference in New Issue
Block a user