Fixed possible memory leak

Added a missing delete to infotag.cpp and fixed some comments.