mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
fix a minor memory leak when unloading m-c-k
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2523 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
d39d6c9213
commit
5c149e2a79
2 changed files with 6 additions and 3 deletions
|
|
@ -322,9 +322,13 @@ void pa__done(pa_module *m) {
|
|||
if (!(u = m->userdata))
|
||||
return;
|
||||
|
||||
if (u->sessions) {
|
||||
while ((session = pa_hashmap_steal_first(u->sessions)))
|
||||
free_session(session);
|
||||
|
||||
pa_hashmap_free(u->sessions, NULL, NULL);
|
||||
}
|
||||
|
||||
if (u->connection)
|
||||
pa_dbus_connection_unref(u->connection);
|
||||
|
||||
|
|
|
|||
|
|
@ -52,7 +52,6 @@ PA_MODULE_VERSION(PACKAGE_VERSION);
|
|||
PA_MODULE_LOAD_ONCE(TRUE);
|
||||
PA_MODULE_USAGE("session_manager=<session manager string> display=<X11 display>");
|
||||
|
||||
|
||||
static pa_bool_t ice_in_use = FALSE;
|
||||
|
||||
static const char* const valid_modargs[] = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue