audio_sink and video_sink leakage fixed

https://bugzilla.gnome.org/show_bug.cgi?id=730010
This commit is contained in:
Anuj Jaiswal 2014-05-13 14:08:20 +06:00 committed by Sebastian Dröge
parent 1ca576c240
commit 59131a4ceb

View file

@ -709,6 +709,10 @@ main (int argc, char **argv)
g_print ("%s\n", version_str); g_print ("%s\n", version_str);
g_print ("%s\n", GST_PACKAGE_ORIGIN); g_print ("%s\n", GST_PACKAGE_ORIGIN);
g_free (version_str); g_free (version_str);
g_free (audio_sink);
g_free (video_sink);
return 0; return 0;
} }
@ -745,6 +749,10 @@ main (int argc, char **argv)
_("You must provide at least one filename or URI to play.")); _("You must provide at least one filename or URI to play."));
/* No input provided. Free array */ /* No input provided. Free array */
g_ptr_array_free (playlist, TRUE); g_ptr_array_free (playlist, TRUE);
g_free (audio_sink);
g_free (video_sink);
return 1; return 1;
} }
@ -783,6 +791,9 @@ main (int argc, char **argv)
/* clean up */ /* clean up */
play_free (play); play_free (play);
g_free (audio_sink);
g_free (video_sink);
g_print ("\n"); g_print ("\n");
return 0; return 0;
} }