lambda-calc-1/color_factory/free.c
2025-01-13 20:36:07 -06:00

44 lines
623 B
C

#include <stdlib.h>
#include <debug.h>
#include <defines/N.h>
#include <string/free.h>
#include "struct.h"
#include "free.h"
void free_color_factory(
struct color_factory* this)
{
ENTER;
if (this)
{
for (unsigned i = 0; i < N(this->colors); i++)
{
free_string(this->colors[i]);
}
free_string(this->numeric);
free_string(this->string);
free_string(this->variable);
free_string(this->builtin);
free_string(this->reset);
free(this);
}
EXIT;
}