message: fix(web): ensure wasm outputs are released when no longer needed
diff: @@ -76,10 +76,13 @@ async function analyze(record: FastaRecord): Promise<NextcladeResult> {
  qry_seq_str: seq,
  })
  - const { result, error } = nextcladeWasm.analyze(input).to_js()
  + const output = nextcladeWasm.analyze(input)
  +
  + try {
  + const { result, error } = output.to_js()
  if (result) {
  - let { query, query_peptides, analysis_result } = result as unknown as AnalysisOutputPojo
  + const { query, query_peptides, analysis_result } = result as unknown as AnalysisOutputPojo
  const queryPeptides = JSON.parse(query_peptides) as Peptide[]
  const analysisResult = JSON.parse(analysis_result) as AnalysisResult
  @@ -104,6 +107,9 @@ async function analyze(record: FastaRecord): Promise<NextcladeResult> {
  }
  throw new ErrorBothResultsAndErrorAreNull()
  + } finally {
  + output.free()
  + }
  }
  // export async function getCladeNodeAttrKeyDescs(): Promise<string> {
  