From b8961d693f68502c83e085db25f1d4903594519a Mon Sep 17 00:00:00 2001 From: Laurent Aimar Date: Sat, 5 Jul 2008 11:29:01 +0000 Subject: [PATCH] Fixed segfault on input_ItemDestroy by vlc_gc_init directly with libvlc and not wth the object that creates new input items. (It fixes the segfaults I had when quitting VLC) --- src/input/item.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/input/item.c b/src/input/item.c index 8bed232c33..793ca3a3c2 100644 --- a/src/input/item.c +++ b/src/input/item.c @@ -345,7 +345,7 @@ input_item_t *input_ItemNewWithType( vlc_object_t *p_obj, const char *psz_uri, DECMALLOC_NULL( p_input, input_item_t ); input_ItemInit( p_obj, p_input ); - vlc_gc_init( p_input, input_ItemDestroy, (void *)p_obj ); + vlc_gc_init( p_input, input_ItemDestroy, (void *)p_obj->p_libvlc ); vlc_object_lock( p_obj->p_libvlc ); p_input->i_id = ++priv->i_last_input_id; -- 2.39.2