Skip to content

Commit

Permalink
Fix regression in commit 3a9b297 closing properties too early.
Browse files Browse the repository at this point in the history
  • Loading branch information
ddennedy committed May 24, 2014
1 parent 3d9c51f commit bf0e81b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/modules/core/producer_melt.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ mlt_producer producer_melt_file_init( mlt_profile profile, mlt_service_type type
mlt_properties_set( properties, "filename", file );
mlt_properties_from_utf8( properties, "filename", "_filename" );
file = mlt_properties_get( properties, "_filename" );
mlt_properties_close( properties );

FILE *input = fopen( file, "r" );
char **args = calloc( sizeof( char * ), MELT_FILE_MAX_LINES );
Expand All @@ -63,10 +62,10 @@ mlt_producer producer_melt_file_init( mlt_profile profile, mlt_service_type type

if ( result != NULL )
{
mlt_properties properties = MLT_PRODUCER_PROPERTIES( result );
mlt_properties_set( properties, "resource", file );
mlt_properties_set( MLT_PRODUCER_PROPERTIES( result ), "resource", file );
}

mlt_properties_close( properties );
while( count -- )
free( args[ count ] );
free( args );
Expand Down

0 comments on commit bf0e81b

Please sign in to comment.