提交 90e312cb 编写于 作者: B Behdad Esfahbod

[util] Move code around

上级 109cb382
...@@ -253,9 +253,6 @@ main (int argc, char **argv) ...@@ -253,9 +253,6 @@ main (int argc, char **argv)
} }
if (debug) { if (debug) {
free (shape_opts->features);
g_free (shape_opts->shapers);
cairo_pattern_destroy (fore_pattern); cairo_pattern_destroy (fore_pattern);
cairo_pattern_destroy (back_pattern); cairo_pattern_destroy (back_pattern);
cairo_surface_destroy (surface); cairo_surface_destroy (surface);
...@@ -268,5 +265,3 @@ main (int argc, char **argv) ...@@ -268,5 +265,3 @@ main (int argc, char **argv)
return 0; return 0;
} }
...@@ -58,6 +58,10 @@ extern struct shape_options_t ...@@ -58,6 +58,10 @@ extern struct shape_options_t
shape_options_t (void) { shape_options_t (void) {
memset (this, 0, sizeof (*this)); memset (this, 0, sizeof (*this));
} }
~shape_options_t (void) {
free (features);
g_free (shapers);
}
const char *text; const char *text;
const char *direction; const char *direction;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册