I think it's very nice that you have the humility and determination to fix what you feel you have wronged. When you do something wrong, turn around, fix it, and then apologize, you have scored maturity points. I'd probably throw in a bonus there.
That aside, I think you did the right thing and I don't think you affected anyone deeply but as Tristan said, you've eliminated the possibility of it happening.
You've gained some respect in my book

.