diff --git a/tools/ges-launch.c b/tools/ges-launch.c index a796742f25..ce5b793205 100644 --- a/tools/ges-launch.c +++ b/tools/ges-launch.c @@ -378,6 +378,7 @@ main (int argc, gchar ** argv) GOptionContext *ctx; GMainLoop *mainloop; GstBus *bus; + GstEncodingProfile *prof = NULL; if (!g_thread_supported ()) g_thread_init (NULL); @@ -429,7 +430,6 @@ main (int argc, gchar ** argv) /* Setup profile/encoding if needed */ if (render || smartrender) { - GstEncodingProfile *prof; prof = make_encoding_profile (audio, video, video_restriction, container); if (!prof || @@ -457,5 +457,8 @@ main (int argc, gchar ** argv) gst_element_set_state (GST_ELEMENT (pipeline), GST_STATE_NULL); + gst_object_unref (pipeline); + gst_encoding_profile_free (prof); + return 0; }