uninitialized values used in encoder

This commit is contained in:
Anshul Maheshwari 2014-07-28 17:48:25 +02:00
parent 3f54fab5f4
commit 335bca4507

View File

@ -378,7 +378,7 @@ int encode_sub(struct encoder_ctx *context, struct cc_subtitle *sub)
if (ccx_options.gui_mode_reports) if (ccx_options.gui_mode_reports)
write_cc_buffer_to_gui(sub->data, context); write_cc_buffer_to_gui(sub->data, context);
} }
if (!sub->nb_data)
freep(&sub->data); freep(&sub->data);
return wrote_something; return wrote_something;
} }