running = other.running;
}
-DestInfo::~DestInfo() {}
+DestInfo::~DestInfo()
+{
+ if (isOnList())
+ remove();
+}
FaxMachineInfo&
DestInfo::getInfo(const fxStr& number)
buf.put((const char*) &ec, sizeof (u_int));
buf.put((const char*) &priority, sizeof (u_short));
}
+
+
+void
+Modem::CLEANUP (void)
+{
+ ModemGroup::reset();
+ QLink* ql = list.next;
+ while (ql != &list)
+ {
+ Modem* m = (Modem*)ql;
+ ql = ql->next;
+
+ delete m;
+ }
+
+}
Modem(const fxStr& devid);
virtual ~Modem();
+ static void CLEANUP (void);
+
static Modem& getModemByID(const fxStr& id);
static Modem* modemExists(const fxStr& id);
static Modem* findModem(const Job& job);
app->close();
delete app;
+
+ Modem::CLEANUP();
+ delete &Dispatcher::instance();
+
return 0;
}
void fxStr::operator=(const fxStr& s)
{
+ if (data == s.data && slength == s.slength)
+ return;
resizeInternal(s.slength-1);
memcpy(data,s.data,s.slength);
slength = s.slength;