I have been married over 10 years. I know its not going to last. I haven't left because of my children. Is that wrong?

I have been married over 10 years. I know its not going to last. I haven't left because of my children. Is that wrong?
Post Opinion