Prevent Valgrind from reporting cached configuration as memory leaks
authorAntonio Ospite <ao2@ao2.it>
Mon, 25 Sep 2017 13:14:45 +0000 (15:14 +0200)
committerAntonio Ospite <ao2@ao2.it>
Tue, 3 Oct 2017 11:40:46 +0000 (13:40 +0200)
See http://git.alsa-project.org/?p=alsa-lib.git;a=blob;f=MEMORY-LEAK;hb=HEAD

gst-aseq-appsrc.c

index 4988dc2..7307ade 100644 (file)
@@ -75,6 +75,12 @@ init_seq (App * app)
     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 (app->seq, DEFAULT_CLIENT_NAME);
   if (ret < 0) {
     GST_ERROR ("Cannot set client name - %s", snd_strerror (ret));