fix null dereference

This commit is contained in:
c0ntrol
2018-09-15 21:03:58 +02:00
parent cf3f55c63d
commit a07d7cf39f

View File

@@ -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;
}