forked from AuroraMiddleware/gtk
compare-render: Fix some memory leaks
This commit is contained in:
parent
d5bf3c2cd1
commit
04b7dd802a
@ -166,6 +166,8 @@ main (int argc, char **argv)
|
||||
return 1;
|
||||
}
|
||||
|
||||
g_option_context_free (context);
|
||||
|
||||
gtk_init ();
|
||||
|
||||
node_file = argv[1];
|
||||
@ -237,5 +239,7 @@ main (int argc, char **argv)
|
||||
cairo_surface_destroy (rendered_surface);
|
||||
g_object_unref (texture);
|
||||
|
||||
gsk_render_node_unref (node);
|
||||
|
||||
return success ? 0 : 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user