#include "SingleShotSource.h"
+#include "Utilities.h"
#include <string>
using namespace std;
void SingleShotSource::DoActivate()
{
// Make sure our destination doesn't vanish while we are sending it data (or the final NULL)
- CFRetain(mDestination->GetCFObject());
+ CFRetainSafe(mDestination->GetCFObject());
// take our value and send it on its way
mDestination->SetAttribute(mDestinationName, GetValue());
// send an end of stream
mDestination->SetAttribute(mDestinationName, NULL);
- CFRelease(mDestination->GetCFObject());
+ CFReleaseSafe(mDestination->GetCFObject());
}