X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/fe8ab488e9161c46dd9885d58fc52996dc0249ff..5c9f46613a83ebfc29a5b1f099448259e96a98f0:/iokit/Kernel/IOSimpleReporter.cpp 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 = {