]> git.sesse.net Git - mlt/blobdiff - src/modules/opengl/filter_movit_mirror.cpp
Propertly refcount the GlslManager.
[mlt] / src / modules / opengl / filter_movit_mirror.cpp
index 12d8d271bb58610e6922d46bdc2e97245db3b87b..6c7b61328358f1909b579dd92279ff8894834a53 100644 (file)
@@ -50,6 +50,8 @@ mlt_filter filter_movit_mirror_init( mlt_profile profile, mlt_service_type type,
        GlslManager* glsl = GlslManager::get_instance();
 
        if ( glsl && ( filter = mlt_filter_new() ) ) {
+               mlt_properties properties = MLT_FILTER_PROPERTIES( filter );
+               glsl->add_ref( properties );
                filter->process = process;
        }
        return filter;