When a function makes/destroys multiple references to an object it should always be safe to coalesce all AddRefs into the first AddRef and all Releases to into the last Release call.

This could be a small performance win, but opAddRef/opRelease would need the count as argument or maybe as template parameter.

Reply via email to