Prevent a double free when finalizing the decoder plugin.