File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -2364,6 +2364,7 @@ void sd_sampling_stream_free(sd_sampling_stream_t* stream) {
2364
2364
stream->cond = {};
2365
2365
stream->uncond = {};
2366
2366
stream->control_hint = nullptr ;
2367
+ // stream->x = nullptr; // no need to free, it's a view
2367
2368
stream->noised_input = nullptr ;
2368
2369
stream->out_cond = nullptr ;
2369
2370
stream->out_uncond = nullptr ;
@@ -2372,7 +2373,10 @@ void sd_sampling_stream_free(sd_sampling_stream_t* stream) {
2372
2373
ggml_free (stream->work_ctx );
2373
2374
stream->work_ctx = nullptr ;
2374
2375
}
2376
+ // stream->sampler = nullptr; // no need to free, it's a shared pointer
2375
2377
stream->sigmas .clear ();
2378
+ // stream->rng = nullptr; // no need to free, it's a shared pointer
2379
+ stream->skip_layers .clear ();
2376
2380
}
2377
2381
2378
2382
bool sd_sampling_stream_sample (sd_ctx_t * sd_ctx, sd_sampling_stream_t * stream) {
You can’t perform that action at this time.
0 commit comments