When a star becomes a shooting star, what happens to the planets revolving around it?

My understanding is that potentially all stars have planets orbiting around them. When the gravitational pull of the star is gone, what happens to the planets?
12 answers 12