shooter: Make sure to free the surface

This commit is contained in:
Jasper St. Pierre 2013-07-17 20:09:56 -04:00
parent a74d394738
commit 1a0c5acb26

View File

@ -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;