alsa-ucm: fix pa_device_port.profiles leak
authorTanu Kaskinen <tanuk@iki.fi>
Fri, 23 Oct 2015 10:56:40 +0000 (13:56 +0300)
committerDavid Henningsson <david.henningsson@canonical.com>
Mon, 26 Oct 2015 09:14:57 +0000 (10:14 +0100)
pa_device_port.profiles is initialized in pa_device_port_new(), so no
need to do that in alsa-ucm.c.

src/modules/alsa/alsa-ucm.c

index ff5693d..42f3242 100644 (file)
@@ -778,7 +778,6 @@ static void ucm_add_port_combination(
 
         pa_hashmap_put(ports, port->name, port);
         pa_log_debug("Add port %s: %s", port->name, port->description);
-        port->profiles = pa_hashmap_new(pa_idxset_string_hash_func, pa_idxset_string_compare_func);
     }
 
     port->priority = priority;