destroyBufferedTemplate(sourceId, templateId);
destroyBufferedTemplate(templateBuffer, sourceId, templateId);
BufferedTemplate* getBufferedTemplate(SourceID sourceId, TemplateID templateId) {	time_t now = time(0);	BufferedTemplate* bt = firstBufferedTemplate;	while (bt != 0) {		if ((bt->sourceID == sourceId) && (bt->templateID == templateId)) {			if ((bt->expires) && (bt->expires < now)) {				destroyBufferedTemplate(sourceId, templateId);				return 0;				}			return bt;			}		bt = (BufferedTemplate*)bt->next;		}	return 0;	}