mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 02:01:12 +00:00
audio_sink and video_sink leakage fixed
https://bugzilla.gnome.org/show_bug.cgi?id=730010
This commit is contained in:
parent
1ca576c240
commit
59131a4ceb
1 changed files with 11 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue