Commit 59131a4c authored by Anuj Jaiswal's avatar Anuj Jaiswal Committed by Sebastian Dröge

audio_sink and video_sink leakage fixed

https://bugzilla.gnome.org/show_bug.cgi?id=730010
parent 1ca576c2
......@@ -709,6 +709,10 @@ main (int argc, char **argv)
g_print ("%s\n", version_str);
g_print ("%s\n", GST_PACKAGE_ORIGIN);
g_free (version_str);
g_free (audio_sink);
g_free (video_sink);
return 0;
}
......@@ -745,6 +749,10 @@ main (int argc, char **argv)
_("You must provide at least one filename or URI to play."));
/* No input provided. Free array */
g_ptr_array_free (playlist, TRUE);
g_free (audio_sink);
g_free (video_sink);
return 1;
}
......@@ -783,6 +791,9 @@ main (int argc, char **argv)
/* clean up */
play_free (play);
g_free (audio_sink);
g_free (video_sink);
g_print ("\n");
return 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment