mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
alsamidisrc: Prevent Valgrind from reporting cached config as memory leaks
See http://git.alsa-project.org/?p=alsa-lib.git;a=blob;f=MEMORY-LEAK;hb=HEAD This allows to have cleaner Valgrind reports about alsamidisrc and make it easier to spot actual problems. https://bugzilla.gnome.org/show_bug.cgi?id=787683
This commit is contained in:
parent
8638d81eb3
commit
f671026f11
1 changed files with 6 additions and 0 deletions
|
@ -94,6 +94,12 @@ init_seq (GstAlsaMidiSrc * alsamidisrc)
|
|||
goto error;
|
||||
}
|
||||
|
||||
/*
|
||||
* Prevent Valgrind from reporting cached configuration as memory leaks, see:
|
||||
* http://git.alsa-project.org/?p=alsa-lib.git;a=blob;f=MEMORY-LEAK;hb=HEAD
|
||||
*/
|
||||
snd_config_update_free_global ();
|
||||
|
||||
ret = snd_seq_set_client_name (alsamidisrc->seq, DEFAULT_CLIENT_NAME);
|
||||
if (ret < 0) {
|
||||
GST_ERROR_OBJECT (alsamidisrc, "Cannot set client name - %s",
|
||||
|
|
Loading…
Reference in a new issue