Stick the whole thing into a pot of boiling water. The candle will melt the fastest on the bottom and the edges of the glass. Then you should be able to slide it out, and let it harden back up.

I have never tried this, so test it with a cheap one first.