Potential torch extinguishing fix

Extinguishing both types of torches results in their deletion. As I looked, it could've been a problem since 2013, so is it actually a problem,and is it a fix?

Or am I wrong wrong and it is it->charges doing this (should be return it->charges -= 1)? 

PS: sorry, I'm ignoramus, if it's wrong just close it.