NULL safety checks
[melted] / src / framework / mlt_filter.c
index 5aefd13..f140df5 100644 (file)
@@ -70,7 +70,7 @@ mlt_filter mlt_filter_new( )
 
 mlt_service mlt_filter_service( mlt_filter this )
 {
-       return &this->parent;
+       return this != NULL ? &this->parent : NULL;
 }
 
 /** Get the properties associated to this filter.