Harry kicking Voldemort out of his head to save Hermione.
I'm referring to this fragment from DH:
** "As Harry spoke, his scar burned worse than ever, and for a few seconds he looked down, not upon the wandmaker, but another man who was just old, just as thin, but laughing scornfully. ‘Kill me, then, Voldemort, I welcome death! But my death will not bring you what you seek. . . . There is so much you do not understand. . . .’
He felt Voldemort’s fury, but as Hermione screamed again he shut it out, returning to the cellar and the horror of his own present. " **
We know that Harry is not good at "technical" Occlumency unlike skilled Occlumentists like Snape, instead he uses his positive emotions to repel Voldemort, who we know is specifically harmed by feelings of love.
Was it Harry's love for Hermione that helped him kick Voldemort out of his mind?
Note that I'm not talking specifically about romantic love, but about the deep affection he feels for her.
In OOTP Dumbledore explains to Harry that it is "his heart" that saved him, referring to how Voldemort was unable to possess Harry because of his love for Sirius:
** "In the end, it mattered not that you could not close your mind. It was your heart that saved you" **
What do you think about this? I hadn't paid much attention to this moment until recently.