I bet it would work. One way to find out is to try it. I would but I don't have any old gasoline hanging around.

New, on some fridges and freezers, there is solid foam inside the shell that the copper and sometimes wires run through.