forked from AuroraMiddleware/gtk
shooter: Make sure to free the surface
This commit is contained in:
parent
a74d394738
commit
1a0c5acb26
@ -120,6 +120,7 @@ int main (int argc, char **argv)
|
||||
filename = g_strdup_printf ("./%s.png", info->name);
|
||||
g_assert (cairo_surface_write_to_png (surface, filename) == CAIRO_STATUS_SUCCESS);
|
||||
g_free (filename);
|
||||
cairo_surface_destroy (surface);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user