fix build after AutoDeleter change

Change-Id: Id6ffc8d58821159b1d570bf5ac17d8347d88f7f5
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3459
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
This commit is contained in:
X512 2020-12-04 23:24:03 +09:00 committed by Adrien Destugues
parent 76ab85671d
commit 71e79db9b8

View File

@ -513,7 +513,7 @@ struct CommandDeleter : BPrivate::AutoDeleter<WorkerCommand, CommandDelete>
~CommandDeleter()
{
if (dynamic_cast<SyncCommand*>(fObject) != NULL)
if (dynamic_cast<SyncCommand*>(Get()) != NULL)
WorkerPrivate(fWorker).SyncCommandDone();
}