summaryrefslogtreecommitdiffstats
path: root/src/cc4group.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cc4group.c')
-rw-r--r--src/cc4group.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cc4group.c b/src/cc4group.c
index b5f443c..93dbd3d 100644
--- a/src/cc4group.c
+++ b/src/cc4group.c
@@ -610,6 +610,7 @@ static void cc4group_cleanupReadState(CC4Group* const this)
{
job->value.func(job->value.data);
}
+ CleanUpJobListDestroy(this->readState.cleanupJobs);
this->readState.cleanupJobs = NULL;
if(this->readState.lastData != NULL && this->lazy)
@@ -1203,7 +1204,6 @@ static void cc4group_init(CC4Group* const this)
this->readState.active = false;
this->readState.lastData = NULL;
this->readState.cleanupJobs = CleanUpJobListNew();
- AddCleanUpJob(CleanUpJobListDestroy, this->readState.cleanupJobs);
}
static bool cc4group_setMakerRecursively(CC4Group* const this, const C4GroupEntryData* groupEntry, const char* const maker)