Mercurial > hg > pulseaudio
changeset 113:83ebae76a9a9
2008-09-10 Omair Majid <omajid@redhat.com>
* src/native/org_classpath_icedtea_pulseaudio_EventLoop.c
(Java_org_classpath_icedtea_pulseaudio_EventLoop_native_1shutdown): Unref
the context when we are done with it. Works with PulseAudio 0.9.12.
* src/native/org_classpath_icedtea_pulseaudio_Stream.c
(Java_org_classpath_icedtea_pulseaudio_Stream_native_1pa_1stream_1disconnect):
Unref the stream when we are done with it. Works with PusleAudio 0.9.12.
author | Omair Majid <omajid@redhat.com> |
---|---|
date | Wed, 10 Sep 2008 10:28:43 -0400 |
parents | 95fa206a3e1d |
children | 81eff60b8606 |
files | src/native/org_classpath_icedtea_pulseaudio_EventLoop.c src/native/org_classpath_icedtea_pulseaudio_Stream.c |
diffstat | 2 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/native/org_classpath_icedtea_pulseaudio_EventLoop.c Tue Sep 09 11:06:05 2008 -0400 +++ b/src/native/org_classpath_icedtea_pulseaudio_EventLoop.c Wed Sep 10 10:28:43 2008 -0400 @@ -281,7 +281,8 @@ } else { pa_operation_unref(o); } - + + pa_context_unref(context); (*env)->DeleteGlobalRef(env, java_context->obj); free(java_context);
--- a/src/native/org_classpath_icedtea_pulseaudio_Stream.c Tue Sep 09 11:06:05 2008 -0400 +++ b/src/native/org_classpath_icedtea_pulseaudio_Stream.c Wed Sep 10 10:28:43 2008 -0400 @@ -478,7 +478,9 @@ (JNIEnv* env, jobject obj) { pa_stream* stream = (pa_stream*) getJavaPointer(env, obj, "streamPointer"); assert(stream); - return pa_stream_disconnect(stream); + int return_value = pa_stream_disconnect(stream); + pa_stream_unref(stream); + return return_value; } /*