Blender crashes when canceling a compositor job if a transform node is used. This is because freeing shared data didn't reset data members, so it still thinks it has allocated data, which will be double freed causing crashes. To fix this, we simply clear data members if data is still shared.