Neutralize brick scent
I've read that vinegar or baking soda (but not both at the same time!) can remove scents. If I were you I'd start trying with the baking soda, since the vinegar itself has some odor.

Activated charcoal is used in industrial scale to filter and purify, you could try that too, it is less trivial to get hold of and probably stains the bricks but it can be washed off by water.

A friend of mine used to clean her LEGO bricks by sewing them tightly in a blanket and putting them in the washing machine with the appropriate amount of detergent. If you choose this method, make sure to always stay clear of the melting point of ABS (80°C or 176F), leaving a margin for security. 50°C or lower shouldn't cause any problems

The simplest solution though is probably to allow the bricks to let out their smell by exposing them to fresh air, maybe accelerated by a fan or such. Beware though, if the candy smell implicates sugar residue it can attract insects.