[pulseaudio-commits] r2523 - in /trunk/src/modules: module-console-kit.c module-x11-xsmp.c
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Fri Jun 13 14:06:09 PDT 2008
Author: lennart
Date: Fri Jun 13 23:06:08 2008
New Revision: 2523
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=2523&root=pulseaudio&view=rev
Log:
fix a minor memory leak when unloading m-c-k
Modified:
trunk/src/modules/module-console-kit.c
trunk/src/modules/module-x11-xsmp.c
Modified: trunk/src/modules/module-console-kit.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/modules/module-console-kit.c?rev=2523&root=pulseaudio&r1=2522&r2=2523&view=diff
==============================================================================
--- trunk/src/modules/module-console-kit.c (original)
+++ trunk/src/modules/module-console-kit.c Fri Jun 13 23:06:08 2008
@@ -322,8 +322,12 @@
if (!(u = m->userdata))
return;
- while ((session = pa_hashmap_steal_first(u->sessions)))
- free_session(session);
+ 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);
Modified: trunk/src/modules/module-x11-xsmp.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/modules/module-x11-xsmp.c?rev=2523&root=pulseaudio&r1=2522&r2=2523&view=diff
==============================================================================
--- trunk/src/modules/module-x11-xsmp.c (original)
+++ trunk/src/modules/module-x11-xsmp.c Fri Jun 13 23:06:08 2008
@@ -51,7 +51,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;
More information about the pulseaudio-commits
mailing list