]> git.sesse.net Git - mlt/commitdiff
Improve mlt_properties_close() in debugger.
authorDan Dennedy <dan@dennedy.org>
Fri, 4 Mar 2011 04:31:28 +0000 (20:31 -0800)
committerDan Dennedy <dan@dennedy.org>
Fri, 4 Mar 2011 04:31:28 +0000 (20:31 -0800)
src/framework/mlt_properties.c

index 9278cf999108c50dbb46e64664ad26f529afd4c5..c64a3fcd85ee5f70a435a3efbe6b975639e33355 100644 (file)
@@ -1157,8 +1157,8 @@ void mlt_properties_close( mlt_properties self )
                        // Clean up names and values
                        for ( index = list->count - 1; index >= 0; index -- )
                        {
                        // Clean up names and values
                        for ( index = list->count - 1; index >= 0; index -- )
                        {
-                               free( list->name[ index ] );
                                mlt_property_close( list->value[ index ] );
                                mlt_property_close( list->value[ index ] );
+                               free( list->name[ index ] );
                        }
 
                        // Clear up the list
                        }
 
                        // Clear up the list