cvReleaseImage (&filter->cvImage);
cvReleaseImage (&filter->cvGray);
}
+
+ g_free (filter->profile);
G_OBJECT_CLASS (parent_class)->finalize (obj);
}
gst_element_add_pad (GST_ELEMENT (filter), filter->sinkpad);
gst_element_add_pad (GST_ELEMENT (filter), filter->srcpad);
- filter->profile = DEFAULT_PROFILE;
+ filter->profile = g_strdup (DEFAULT_PROFILE);
gst_faceblur_load_profile (filter);
}
switch (prop_id) {
case PROP_PROFILE:
+ g_free (filter->profile);
filter->profile = g_value_dup_string (value);
gst_faceblur_load_profile (filter);
break;
switch (prop_id) {
case PROP_PROFILE:
- g_value_take_string (value, filter->profile);
+ g_value_set_string (value, filter->profile);
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);