diff options
-rw-r--r-- | src/empathy-audio-src.c | 2 | ||||
-rw-r--r-- | src/empathy-audio-src.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/empathy-audio-src.c b/src/empathy-audio-src.c index df346ea66..086b0a189 100644 --- a/src/empathy-audio-src.c +++ b/src/empathy-audio-src.c @@ -118,6 +118,7 @@ operation_get_microphones_free (gpointer data) { EmpathyAudioSrcMicrophone *mic = l->data; + g_free (mic->name); g_free (mic->description); g_slice_free (EmpathyAudioSrcMicrophone, mic); } @@ -148,6 +149,7 @@ operation_get_microphones_cb (pa_context *context, mic = g_slice_new0 (EmpathyAudioSrcMicrophone); mic->index = info->index; + mic->name = g_strdup (info->name); mic->description = g_strdup (info->description); /* add it to the queue */ diff --git a/src/empathy-audio-src.h b/src/empathy-audio-src.h index c5887237f..298d59c7d 100644 --- a/src/empathy-audio-src.h +++ b/src/empathy-audio-src.h @@ -65,6 +65,7 @@ gdouble empathy_audio_src_get_volume (EmpathyGstAudioSrc *src); typedef struct { guint index; + gchar *name; gchar *description; } EmpathyAudioSrcMicrophone; |