changeset 1422:e7a4c496b2c0

2008-11-10 Omair Majid <omajid@redhat.com> * pulseaudio/src/native/org_classpath_icedtea_pulseaudio_EventLoop.c (Java_org_classpath_icedtea_pulseaudio_EventLoop_native_1set_1sink_1volume): Deallocate unused memory.
author Omair Majid <omajid@redhat.com>
date Mon, 10 Nov 2008 10:15:16 -0500
parents cfe2c755ee47
children 58f7eb173fe0
files ChangeLog pulseaudio/src/native/org_classpath_icedtea_pulseaudio_EventLoop.c
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Mon Nov 10 12:43:00 2008 +0100
+++ b/ChangeLog	Mon Nov 10 10:15:16 2008 -0500
@@ -1,3 +1,9 @@
+2008-11-10  Omair Majid  <omajid@redhat.com>
+
+	* pulseaudio/src/native/org_classpath_icedtea_pulseaudio_EventLoop.c
+	(Java_org_classpath_icedtea_pulseaudio_EventLoop_native_1set_1sink_1volume):
+	Deallocate unused memory.
+
 2008-11-10  Mark Wielaard  <mark@klomp.org>
 
 	* overlays/openjdk/jdk/src/share/classes/com/sun/media/sound/
--- a/pulseaudio/src/native/org_classpath_icedtea_pulseaudio_EventLoop.c	Mon Nov 10 12:43:00 2008 +0100
+++ b/pulseaudio/src/native/org_classpath_icedtea_pulseaudio_EventLoop.c	Mon Nov 10 10:15:16 2008 -0500
@@ -356,7 +356,8 @@
 	*new_volume = volume;
 
 	int stream_id = pa_stream_get_index(stream);
-	pa_context_get_sink_input_info(context, stream_id,sink_input_change_volume, new_volume);
+	pa_operation* o = pa_context_get_sink_input_info(context, stream_id,sink_input_change_volume, new_volume);
+	pa_operation_unref(o);
 	return;
 }