The cartridge (1) for dispensing an aerosol includes a liquid container (12), a nozzle (5) communicating with the container via a suction cannula (4) and a compressor (6) for producing a carrier stream of compressed air introduced into the nozzle such that the contents of the container are first sucked in, then fractionated and finally propelled into an expansion chamber (13) and then to the outside. The cartridge is remarkable in that the elements of which it consists form a non-dismountable assembly and includes electronic circuitry (9) of planned obsolescence capable of directly or indirectly determining the total quantity of liquid consumed during previous operation cycles, of comparing this value with a setpoint value representative of the quantity of liquid present in the container before the first use, and of preventing the subsequent operation of the compressor when the liquid contained in the container has been drained.