I do the same thing except i gargle and spit
Yes, I spit it out too tho I guess salty water is not technically dangerous. I always brush my teeth first then do the gargle after in case I might have scratched a gum just enough to let germs in.
I figure swishing the hot salty water around would stop that at least for a while.