void PdBase::closePatch(Patch& patch) { if(!patch.isValid()) { return; } libpd_closefile(patch.handle()); patch.clear(); }
void ofxPd::closePatch(Patch& patch) { ofLog(OF_LOG_VERBOSE, "ofxPd: Closing patch: %s", patch.filename().c_str()); _LOCK(); libpd_closefile(patch.handle()); _UNLOCK(); patch.clear(); }