Skip to content
Browse files

[AE] fixed: free mainloop in PulseAE

  • Loading branch information...
1 parent 52f85ab commit 2d8f620ac468c75a0310fced227487855266239d spiff committed May 14, 2012
Showing with 7 additions and 3 deletions.
  1. +7 −3 xbmc/cores/AudioEngine/Engines/PulseAE/PulseAE.cpp
View
10 xbmc/cores/AudioEngine/Engines/PulseAE/PulseAE.cpp
@@ -85,15 +85,19 @@ CPulseAE::CPulseAE()
CPulseAE::~CPulseAE()
{
- if (m_MainLoop)
- pa_threaded_mainloop_stop(m_MainLoop);
-
if (m_Context)
{
pa_context_disconnect(m_Context);
pa_context_unref(m_Context);
m_Context = NULL;
}
+
+ if (m_MainLoop)
+ {
+ pa_threaded_mainloop_stop(m_MainLoop);
+ pa_threaded_mainloop_free(m_MainLoop);
+ }
+
}
bool CPulseAE::Initialize()

0 comments on commit 2d8f620

Please sign in to comment.
Something went wrong with that request. Please try again.