]> code.delx.au - pulseaudio/commitdiff
sink-input: Fix memory leak of proplist when sending format-changed events
authorColin Guthrie <colin@mageia.org>
Sun, 15 May 2011 17:41:31 +0000 (18:41 +0100)
committerColin Guthrie <colin@mageia.org>
Mon, 16 May 2011 08:59:19 +0000 (09:59 +0100)
src/pulsecore/sink-input.c

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