void DoCloseSG(ComponentInstance seqGrab, SGChannel sgChannel, SGDataUPP dataProc) { if(seqGrab) { SGStop(seqGrab); SGSetDataProc(seqGrab, NULL ,NULL); if (dataProc) { DisposeSGDataUPP(dataProc); } SGDisposeChannel(seqGrab, sgChannel); CloseComponent(seqGrab); } }
~SGChannelHolder() { SGDisposeChannel(*itsOwner, it); }