Skip to content

Commit

Permalink
fixed #1980
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanlf committed Dec 13, 2021
1 parent 6d647f6 commit ef86a8e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions include/gpac/svg_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,9 @@ enum {
LASeR_Size_datatype,

SVG_Matrix2D_datatype,

/*internal type for node list*/
SVG_NodeList_datatype
};

//! @cond Doxygen_Suppress
Expand Down
1 change: 1 addition & 0 deletions src/laser/lsr_dec.c
Original file line number Diff line number Diff line change
Expand Up @@ -5250,6 +5250,7 @@ static GF_Err lsr_read_add_replace_insert(GF_LASeRCodec *lsr, GF_List *com_list,
gf_node_register(field->new_node, NULL);
if (att_type>=0) field->fieldIndex = gf_lsr_anim_type_to_attribute(att_type);
} else {
field->fieldType = SVG_NodeList_datatype;
field->field_ptr = &field->node_list;
while (count) {
GF_Node *new_node = lsr_read_update_content_model(lsr, (SVG_Element *) n);
Expand Down
2 changes: 2 additions & 0 deletions src/scenegraph/svg_types.c
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,8 @@ void gf_svg_delete_attribute_value(u32 type, void *value, GF_SceneGraph *sg)
if (*(SVG_String *)value) gf_free(*(SVG_String *)value);
gf_free(value);
break;
case SVG_NodeList_datatype:
break;
case SMIL_RepeatCount_datatype:
case SMIL_Duration_datatype:
case SVG_Length_datatype:
Expand Down
2 changes: 1 addition & 1 deletion src/scenegraph/vrml_tools.c
Original file line number Diff line number Diff line change
Expand Up @@ -1129,7 +1129,7 @@ GF_Err gf_sg_vrml_mf_reset(void *mf, u32 FieldType)
gf_sg_mfurl_del( * ((MFURL *) mf));
break;
case GF_SG_VRML_MFSCRIPT:
gf_sg_mfscript_del( * ((MFScript *) mf));
gf_sg_mfscript_del( * ((MFScript *) mf));
break;
default:
if (mffield->array) gf_free(mffield->array);
Expand Down

0 comments on commit ef86a8e

Please sign in to comment.