diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2011-03-31 20:24:59 +0000 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2011-03-31 20:24:59 +0000 |
commit | bd459776a424e40eb181f269a113eb30eb691cd3 (patch) | |
tree | 4a9e59d02ce79ce46fa728f0b932b8847db58461 /Meter.c | |
parent | b57b7e9a9e7b960cf5f2b38e79b332cbff6533df (diff) |
retain meter state when it is reinit'ed in the Setup screen
Diffstat (limited to 'Meter.c')
-rw-r--r-- | Meter.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -155,8 +155,9 @@ Meter* Meter_new(ProcessList* pl, int param, MeterType* type) { } void Meter_delete(Object* cast) { + if (!cast) + return; Meter* this = (Meter*) cast; - assert (this != NULL); if (this->type->done) { this->type->done(this); } |