launch_daemon: Make sure conditions are properly deleted.
This commit is contained in:
parent
1e9c987102
commit
c2d703ea5d
@ -17,6 +17,12 @@ BaseJob::BaseJob(const char* name)
|
||||
}
|
||||
|
||||
|
||||
BaseJob::~BaseJob()
|
||||
{
|
||||
delete fCondition;
|
||||
}
|
||||
|
||||
|
||||
const char*
|
||||
BaseJob::Name() const
|
||||
{
|
||||
|
@ -18,6 +18,7 @@ class ConditionContext;
|
||||
class BaseJob : public BJob {
|
||||
public:
|
||||
BaseJob(const char* name);
|
||||
~BaseJob();
|
||||
|
||||
const char* Name() const;
|
||||
|
||||
|
@ -119,6 +119,8 @@ Condition::~Condition()
|
||||
|
||||
|
||||
ConditionContainer::ConditionContainer(const BMessage& args)
|
||||
:
|
||||
fConditions(10, true)
|
||||
{
|
||||
char* name;
|
||||
type_code type;
|
||||
|
Loading…
x
Reference in New Issue
Block a user