fix: release VAE compute buffer after tiled encoding (#1465)

This commit is contained in:
Wagner Bruna 2026-04-29 11:25:30 -03:00 committed by GitHub
parent a81677f59c
commit 331cfa5387
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -142,9 +142,10 @@ public:
"vae encode compute failed while processing a tile");
} else {
output = _compute(n_threads, input, false);
free_compute_buffer();
}
free_compute_buffer();
if (output.empty()) {
LOG_ERROR("vae encode compute failed");
return {};