From d267841e413cbf1f187f6f8e10cd1aaf227d873c Mon Sep 17 00:00:00 2001 From: Brandon Lewis Date: Tue, 20 Jul 2010 18:38:54 +0200 Subject: [PATCH] we don't have to free all that much, in fact --- tests/examples/ges-ui.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/tests/examples/ges-ui.c b/tests/examples/ges-ui.c index 90146d3605..134a9b5b22 100644 --- a/tests/examples/ges-ui.c +++ b/tests/examples/ges-ui.c @@ -89,12 +89,6 @@ app_dispose (App * app) if (app->pipeline) gst_object_unref (app->pipeline); - if (app->timeline) - g_object_unref (app->timeline); - - if (app->main_window) - g_object_unref (app->main_window); - g_free (app); } } @@ -131,9 +125,10 @@ main (int argc, char *argv[]) /* initialize UI */ gtk_init (&argc, &argv); - app = app_new (); - - gtk_main (); + if ((app = app_new ())) { + gtk_main (); + app_dispose (app); + } return 0; }