Quote:Original post by Samurai Jack
thank you everyone! >Troll: The unref function is just like release except it does not destroy the object when the counter gets bellow one.
Yeah, but why? If Unref is the last call made instead of release, the object won't delete and you'll leak. The only purpose I can see is that it's a crutch for those times you don't accurately remove references, but you "know" there's some owner some where that has it. It just seems like it promotes bad practices but really doesn't provide any benefit.