mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-11 20:01:35 +00:00
we don't have to free all that much, in fact
This commit is contained in:
parent
d236e92178
commit
d267841e41
1 changed files with 4 additions and 9 deletions
|
@ -89,12 +89,6 @@ app_dispose (App * app)
|
||||||
if (app->pipeline)
|
if (app->pipeline)
|
||||||
gst_object_unref (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);
|
g_free (app);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -131,9 +125,10 @@ main (int argc, char *argv[])
|
||||||
/* initialize UI */
|
/* initialize UI */
|
||||||
gtk_init (&argc, &argv);
|
gtk_init (&argc, &argv);
|
||||||
|
|
||||||
app = app_new ();
|
if ((app = app_new ())) {
|
||||||
|
gtk_main ();
|
||||||
gtk_main ();
|
app_dispose (app);
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue