shm: Don't leak socket path

This commit is contained in:
Olivier Crête 2013-02-28 18:13:44 -05:00
parent 97e93f8dd4
commit df321edeaf
2 changed files with 2 additions and 0 deletions

View file

@ -190,6 +190,7 @@ gst_shm_sink_finalize (GObject * object)
GstShmSink *self = GST_SHM_SINK (object);
g_cond_clear (&self->cond);
g_free (self->socket_path);
G_OBJECT_CLASS (parent_class)->finalize (object);
}

View file

@ -156,6 +156,7 @@ gst_shm_src_finalize (GObject * object)
GstShmSrc *self = GST_SHM_SRC (object);
gst_poll_free (self->poll);
g_free (self->socket_path);
G_OBJECT_CLASS (parent_class)->finalize (object);
}