]> git.sesse.net Git - mlt/commitdiff
Revert "Fix a memory leak registering frei0r services."
authorDan Dennedy <dan@dennedy.org>
Thu, 3 Jun 2010 05:50:32 +0000 (22:50 -0700)
committerDan Dennedy <dan@dennedy.org>
Thu, 3 Jun 2010 05:50:32 +0000 (22:50 -0700)
This reverts commit e82c4054090ed764a41331dc46deb1e02ee11edc.

src/modules/frei0r/factory.c

index 346a5c1efacf415b467d0631938f61602b3101bd..40d778cd687c71867316116ba1af48dcaf63efe7 100644 (file)
@@ -334,7 +334,7 @@ MLT_REPOSITORY
                                                        continue;
                                                }
                                                MLT_REGISTER( producer_type, pluginname, create_frei0r_item );
-                                               MLT_REGISTER_METADATA( producer_type, pluginname, fill_param_info, name );
+                                               MLT_REGISTER_METADATA( producer_type, pluginname, fill_param_info, strdup(name) );
                                        }
                                        else if (firstname && info.plugin_type==F0R_PLUGIN_TYPE_FILTER){
                                                if (mlt_properties_get(mlt_repository_filters(repository), pluginname))
@@ -343,7 +343,7 @@ MLT_REPOSITORY
                                                        continue;
                                                }
                                                MLT_REGISTER( filter_type, pluginname, create_frei0r_item );
-                                               MLT_REGISTER_METADATA( filter_type, pluginname, fill_param_info, name );
+                                               MLT_REGISTER_METADATA( filter_type, pluginname, fill_param_info, strdup(name) );
                                        }
                                        else if (firstname && info.plugin_type==F0R_PLUGIN_TYPE_MIXER2 ){
                                                if (mlt_properties_get(mlt_repository_transitions(repository), pluginname))
@@ -352,7 +352,7 @@ MLT_REPOSITORY
                                                        continue;
                                                }
                                                MLT_REGISTER( transition_type, pluginname, create_frei0r_item );
-                                               MLT_REGISTER_METADATA( transition_type, pluginname, fill_param_info, name );
+                                               MLT_REGISTER_METADATA( transition_type, pluginname, fill_param_info, strdup(name) );
                                        }
                                }
                                dlclose(handle);