[pulseaudio-discuss] [PATCH 5/6] virtual-sink/source: Remove an unused variable.

Tanu Kaskinen tanu.kaskinen at digia.com
Thu Feb 24 06:16:42 PST 2011


---
 src/modules/module-virtual-sink.c   |    5 -----
 src/modules/module-virtual-source.c |    5 -----
 2 files changed, 0 insertions(+), 10 deletions(-)

diff --git a/src/modules/module-virtual-sink.c b/src/modules/module-virtual-sink.c
index a45f4f5..bad159c 100644
--- a/src/modules/module-virtual-sink.c
+++ b/src/modules/module-virtual-sink.c
@@ -481,7 +481,6 @@ int pa__init(pa_module*m) {
     pa_sink *master=NULL;
     pa_sink_input_new_data sink_input_data;
     pa_sink_new_data sink_data;
-    pa_bool_t *use_default = NULL;
     pa_bool_t use_volume_sharing = FALSE;
     pa_bool_t force_flat_volume = FALSE;
 
@@ -619,16 +618,12 @@ int pa__init(pa_module*m) {
 
     pa_modargs_free(ma);
 
-    pa_xfree(use_default);
-
     return 0;
 
  fail:
     if (ma)
         pa_modargs_free(ma);
 
-    pa_xfree(use_default);
-
     pa__done(m);
 
     return -1;
diff --git a/src/modules/module-virtual-source.c b/src/modules/module-virtual-source.c
index 2b27b05..d7e1c21 100644
--- a/src/modules/module-virtual-source.c
+++ b/src/modules/module-virtual-source.c
@@ -535,7 +535,6 @@ int pa__init(pa_module*m) {
     pa_source *master=NULL;
     pa_source_output_new_data source_output_data;
     pa_source_new_data source_data;
-    pa_bool_t *use_default = NULL;
 
     /* optional for uplink_sink */
     pa_sink_new_data sink_data;
@@ -714,16 +713,12 @@ int pa__init(pa_module*m) {
 
     pa_modargs_free(ma);
 
-    pa_xfree(use_default);
-
     return 0;
 
  fail:
     if (ma)
         pa_modargs_free(ma);
 
-    pa_xfree(use_default);
-
     pa__done(m);
 
     return -1;
-- 
1.7.3.4




More information about the pulseaudio-discuss mailing list