Skip to content

Commit

Permalink
Backport: fix the wrong thing being sent to DisposeObject - call it o…
Browse files Browse the repository at this point in the history
…n the UnitObj not instance private data!
  • Loading branch information
Kalamatee authored and deadwood committed Jun 17, 2022
1 parent 55fea88 commit 8ea89c0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rom/devs/ata/ata.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright © 2004-2019, The AROS Development Team. All rights reserved
Copyright © 2004-2020, The AROS Development Team. All rights reserved
$Id$
Desc:
Expand Down Expand Up @@ -1042,8 +1042,9 @@ void BusTaskCode(struct ata_Bus *bus, struct ataBase *ATABase)
}
else
{
DINIT(bug("[ATA**] Disposing unit @ 0x%p (obj @ 0x%p)\n", unit, unitObj);)
/* Destroy unit that couldn't be initialised */
OOP_DisposeObject((OOP_Object *)unit);
OOP_DisposeObject(unitObj);
bus->ab_Dev[iter] = DEV_NONE;
}
}
Expand Down

0 comments on commit 8ea89c0

Please sign in to comment.