flacdec_close(): Be liberal in what you accept.
authorAndre Noll <maan@systemlinux.org>
Tue, 10 Apr 2012 05:38:20 +0000 (07:38 +0200)
committerAndre Noll <maan@systemlinux.org>
Sun, 3 Jun 2012 11:04:01 +0000 (13:04 +0200)
commit1e196821cc4fa9e1319557ce1100961be6795278
tree328c1fb1d65cc94fb7fa2190ca23c4305d02b056
parent3f96f9c305ff0c57ef10c523a2c45a4045f32dde
flacdec_close(): Be liberal in what you accept.

Functions like close() which terminate an instance of some subsystem
should always be idempotent, i.e. when calling such a function twice
with the same argument, the second call should be a noop.

However, flacdec_close() violates this rule because it dereferences
its private pointer unconditionally. This patch makes the function
idempotent.
flacdec_filter.c