mirror of
https://github.com/game-stop/veejay.git
synced 2026-01-05 22:45:30 +01:00
fix null dereference
This commit is contained in:
@@ -1923,11 +1923,9 @@ editlist *vj_el_clone(editlist *el)
|
||||
|
||||
if( vj_el_framelist_clone( el, clone ) )
|
||||
return clone;
|
||||
else
|
||||
{
|
||||
if(clone) vj_el_free(clone);
|
||||
veejay_msg(VEEJAY_MSG_ERROR, "Cannot clone: Memory error?!");
|
||||
}
|
||||
|
||||
return clone;
|
||||
if(clone) vj_el_free(clone);
|
||||
veejay_msg(VEEJAY_MSG_ERROR, "Cannot clone: Memory error?!");\
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user