X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/1c79356b52d46aa6b508fb032f5ae709b1f2897b..5eebf7385fedb1517b66b53c28e5aa6bb0a2be50:/iokit/Kernel/IOInterruptEventSource.cpp?ds=inline diff --git a/iokit/Kernel/IOInterruptEventSource.cpp b/iokit/Kernel/IOInterruptEventSource.cpp index a6b0034f4..72ff61937 100644 --- a/iokit/Kernel/IOInterruptEventSource.cpp +++ b/iokit/Kernel/IOInterruptEventSource.cpp @@ -72,9 +72,9 @@ OSMetaClassDefineReservedUnused(IOInterruptEventSource, 6); OSMetaClassDefineReservedUnused(IOInterruptEventSource, 7); bool IOInterruptEventSource::init(OSObject *inOwner, - Action inAction = 0, - IOService *inProvider = 0, - int inIntIndex = 0) + Action inAction, + IOService *inProvider, + int inIntIndex) { bool res = true; @@ -123,7 +123,7 @@ IOInterruptEventSource::interruptEventSource(OSObject *inOwner, IOInterruptEventSource *me = new IOInterruptEventSource; if (me && !me->init(inOwner, inAction, inProvider, inIntIndex)) { - me->free(); + me->release(); return 0; }