Ticket #9548: pa-mem-leak-fixed.diff
File pa-mem-leak-fixed.diff, 966 bytes (added by , 13 years ago) |
---|
-
audiooutputpulse.cpp
old new AudioOutputPulseAudio::AudioOutputPulseA 45 45 AudioOutputPulseAudio::~AudioOutputPulseAudio() 46 46 { 47 47 KillAudio(); 48 if (pcontext) 49 { 50 pa_context_unref(pcontext); 51 pcontext = NULL; 52 } 48 53 } 49 54 50 55 AudioOutputSettings* AudioOutputPulseAudio::GetOutputSettings() … … AudioOutputSettings* AudioOutputPulseAud 106 111 } 107 112 108 113 pa_context_disconnect(pcontext); 114 pa_context_unref(pcontext); 109 115 pcontext = NULL; 110 116 pa_threaded_mainloop_stop(mainloop); 111 117 mainloop = NULL; … … void AudioOutputPulseAudio::CloseDevice( 210 216 { 211 217 pa_context_drain(pcontext, NULL, NULL); 212 218 pa_context_disconnect(pcontext); 219 pa_context_unref(pcontext); 213 220 pcontext = NULL; 214 221 } 215 222