Fixes #99

Had a leak similar to issue #90 but in C2DM as it was only fixed for GCM