[vlc-commits] [Git][videolan/vlc][master] es_out: test: fix leaks
Steve Lhomme (@robUx4)
gitlab at videolan.org
Thu Oct 10 10:17:23 UTC 2024
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
15fdddbc by Thomas Guillem at 2024-10-10T09:57:11+00:00
es_out: test: fix leaks
- - - - -
1 changed file:
- src/input/test/es_out.c
Changes:
=====================================
src/input/test/es_out.c
=====================================
@@ -152,10 +152,11 @@ void vlc_input_decoder_DecodeWithStatus(
bool do_pace,
struct vlc_input_decoder_status *status)
{
- (void)owner; (void)frame; (void)do_pace; (void)status;
+ (void)owner; (void)do_pace;
if (status != NULL)
*status = (struct vlc_input_decoder_status){ .format.changed = false };
+ vlc_frame_Release(frame);
}
void vlc_input_decoder_Drain(vlc_input_decoder_t *owner)
@@ -441,5 +442,10 @@ int main(void)
es_out_SetMode(out, ES_OUT_MODE_END);
es_out_Delete(&out->out);
+ input_source_Release(source);
+ input_item_Release(item);
+ vlc_object_delete(&input->obj);
+ vlc_object_delete(root);
+
return VLC_SUCCESS;
}
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/15fdddbc53c49ca0496653fd94e034bc82b3d8a7
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/15fdddbc53c49ca0496653fd94e034bc82b3d8a7
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list