mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2025-01-13 13:40:54 +00:00
Fix segfault (#1192)
This commit is contained in:
parent
676be1f193
commit
84ba7c5238
@ -1226,7 +1226,7 @@ int encode_sub(struct encoder_ctx *context, struct cc_subtitle *sub)
|
||||
write_cc_buffer_to_gui(sub->data, context);
|
||||
#endif // PYTHON_API
|
||||
}
|
||||
freep(sub->data);
|
||||
freep(&sub->data);
|
||||
break;
|
||||
case CC_BITMAP:
|
||||
switch (context->write_format)
|
||||
|
@ -413,7 +413,7 @@ struct encoder_ctx *update_encoder_list_cinfo(struct lib_ccx_ctx *ctx, struct ca
|
||||
enc_ctx = init_encoder(&ccx_options.enc_cfg);
|
||||
if (!enc_ctx)
|
||||
{
|
||||
freep(ccx_options.enc_cfg.output_filename);
|
||||
freep(&ccx_options.enc_cfg.output_filename);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user