Skip to content
Snippets Groups Projects
Commit db44bc22 authored by JPeg's avatar JPeg
Browse files

Incref/decref input_item to avoid eventual segfaults

parent 69487bf4
No related branches found
No related tags found
No related merge requests found
......@@ -390,7 +390,9 @@ private:
public slots:
void requestUpdate() { emit updateRequested(); };
void update( input_item_t* p_item )
{ p_input = p_item; requestUpdate(); }
{ if( p_input ) vlc_gc_decref( p_input );
if( ( p_input = p_item ) ) vlc_gc_incref( p_input );
requestUpdate(); }
private slots:
void doUpdate();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment