[gtk+] shooter: Make sure to free the surface



commit 1a0c5acb26bee3df52b75cf34b95c4d93810f3b7
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Wed Jul 17 20:09:56 2013 -0400

    shooter: Make sure to free the surface

 docs/tools/shooter.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/docs/tools/shooter.c b/docs/tools/shooter.c
index 84c993e..e05cfb5 100644
--- a/docs/tools/shooter.c
+++ b/docs/tools/shooter.c
@@ -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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]