Actually, the barrel is there just in case the person clearing the firearm FAILED to properly clear the firearm. It's a safety item, acting as a safe direction and a way to catch the errant discharge. Of course,, if a person does the clearing process properly, the barrel is never needed.
In USPSA,, as a RO,, I have specific range commands. After a competitor has completed a stage,, I say; "If you are finished, unload & show clear." They are supposed to drop their magazine, or remove their moon clip, open the firearm, & present it to the RO where I can SEE the empty chamber. After which, I say; "If clear, hammer down." The word IF is in there to put the responsibility BACK to the shooter to ALSO check the chamber prior them dropping the slide & dropping the hammer.
The person who shot herself obviously did something wrong. The story is too vague & without details.
Still, gun safety falls directly upon the person with the firearm.