sink-input: Fix memory leak of proplist when sending format-changed events

This commit is contained in:
Colin Guthrie 2011-05-15 18:41:31 +01:00
parent 3c4accfde2
commit e59fc6c6bc

View file

@ -1600,6 +1600,7 @@ int pa_sink_input_finish_move(pa_sink_input *i, pa_sink *dest, pa_bool_t save) {
* reconnect */ * reconnect */
pa_proplist_sets(p, "device", dest->name); pa_proplist_sets(p, "device", dest->name);
pa_sink_input_send_event(i, PA_STREAM_EVENT_FORMAT_LOST, p); pa_sink_input_send_event(i, PA_STREAM_EVENT_FORMAT_LOST, p);
pa_proplist_free(p);
return -PA_ERR_NOTSUPPORTED; return -PA_ERR_NOTSUPPORTED;
} }