I went through a period of depression as well and had such thoughts. If you don't talk with someone you wind up solving a temporary problem with a permanent "solution". Thankfully someone lit into me with both barrels to seek help and I haven't had any recurrence in the past decade.