Fix memleak
authorNikolas Garofil <nikolas@garofil.be>
Mon, 22 Feb 2010 15:49:38 +0000 (16:49 +0100)
committerNikolas Garofil <nikolas@garofil.be>
Mon, 22 Feb 2010 15:49:38 +0000 (16:49 +0100)
src/combine.c

index aacef73..18b2bc4 100644 (file)
@@ -174,6 +174,8 @@ void free_combine(struct text_object *obj)
        free(cd->left);
        free(cd->seperation);
        free(cd->right);
+       free_text_objects(obj->sub->sub, 1);
+       free(obj->sub->sub);
        free_text_objects(obj->sub, 1);
        free(obj->sub);
        free(obj->data.opaque);