[util] Move code around

This commit is contained in:
Behdad Esfahbod 2011-09-08 16:42:37 -04:00
parent 109cb38289
commit 90e312cb85
2 changed files with 4 additions and 5 deletions

View File

@ -253,9 +253,6 @@ main (int argc, char **argv)
}
if (debug) {
free (shape_opts->features);
g_free (shape_opts->shapers);
cairo_pattern_destroy (fore_pattern);
cairo_pattern_destroy (back_pattern);
cairo_surface_destroy (surface);
@ -268,5 +265,3 @@ main (int argc, char **argv)
return 0;
}

View File

@ -58,6 +58,10 @@ extern struct shape_options_t
shape_options_t (void) {
memset (this, 0, sizeof (*this));
}
~shape_options_t (void) {
free (features);
g_free (shapers);
}
const char *text;
const char *direction;