Recent research suggests that chronic inflammation may cause depression [1]. Therefore the root cause may be inflammation, leading to both depression and heart disease. (Of course biology is never that simple and there are probably loops and feedbacks.)
[1] Summary: http://slatestarcodex.com/2015/01/05/chronic-psychitis/