X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/fe8ab488e9161c46dd9885d58fc52996dc0249ff..a39ff7e25e19b3a8c3020042a3872ca9ec9659f1:/iokit/Kernel/IOSimpleReporter.cpp?ds=inline diff --git a/iokit/Kernel/IOSimpleReporter.cpp b/iokit/Kernel/IOSimpleReporter.cpp index 81c8232eb..de430f566 100644 --- a/iokit/Kernel/IOSimpleReporter.cpp +++ b/iokit/Kernel/IOSimpleReporter.cpp @@ -37,7 +37,7 @@ OSDefineMetaClassAndStructors(IOSimpleReporter, IOReporter); IOSimpleReporter* IOSimpleReporter::with(IOService *reportingService, IOReportCategories categories, - IOReportUnits unit) + IOReportUnit unit) { IOSimpleReporter *reporter, *rval = NULL; @@ -56,7 +56,7 @@ IOSimpleReporter::with(IOService *reportingService, finish: if (!rval) { - if (reporter) delete reporter; + OSSafeReleaseNULL(reporter); } return rval; @@ -65,7 +65,7 @@ finish: bool IOSimpleReporter::initWith(IOService *reportingService, IOReportCategories categories, - IOReportUnits unit) + IOReportUnit unit) { // fully specify the channel type for the superclass IOReportChannelType channelType = {