another leak on failure

SVN revision: 80872
This commit is contained in:
Mike Blumenkrantz 2012-12-13 14:46:15 +00:00
parent 6f981cc6a5
commit f243a81f94
1 changed files with 2 additions and 1 deletions

View File

@ -61,7 +61,7 @@ deserialize_sink(Pulse *conn __UNUSED__, Pulse_Tag *tag, Eina_Bool source)
uint32_t owner_module, monitor_source, flags, base_volume, state, n_volume_steps, card, n_ports;
uint64_t latency, configured_latency;
const char *monitor_source_name, *driver;
Eina_Hash *props;
Eina_Hash *props = NULL;
unsigned int x;
monitor_source_name = driver = NULL;
@ -120,6 +120,7 @@ deserialize_sink(Pulse *conn __UNUSED__, Pulse_Tag *tag, Eina_Bool source)
return sink;
error:
pulse_sink_free(sink);
eina_hash_free(props);
return NULL;
}