44 lines
623 B
C
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;
|
|
}
|
|
|
|
|
|
|
|
|
|
|