summaryrefslogtreecommitdiff
path: root/ext/audiofile/gstafsrc.c
diff options
context:
space:
mode:
authorReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>2015-11-17 15:23:17 -0800
committerReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>2015-11-18 16:05:42 -0800
commit86ec81242987d876ef0760b6d9201c79de9d1bf4 (patch)
tree7218eb94926339718084cf101ab76907d8912793 /ext/audiofile/gstafsrc.c
parent87b5ad0dfc2cca4c35337f85bc0f5b89fe462d6a (diff)
downloadgstreamer-plugins-bad-86ec81242987d876ef0760b6d9201c79de9d1bf4.tar.gz
Remove unnecessary NULL checks before g_free()
g_free() is NULL-safe
Diffstat (limited to 'ext/audiofile/gstafsrc.c')
-rw-r--r--ext/audiofile/gstafsrc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/audiofile/gstafsrc.c b/ext/audiofile/gstafsrc.c
index 45f86be83..ce4db3963 100644
--- a/ext/audiofile/gstafsrc.c
+++ b/ext/audiofile/gstafsrc.c
@@ -250,8 +250,7 @@ gst_afsrc_set_property (GObject * object, guint prop_id, const GValue * value,
switch (prop_id) {
case ARG_LOCATION:
- if (src->filename)
- g_free (src->filename);
+ g_free (src->filename);
src->filename = g_strdup (g_value_get_string (value));
break;
default: