mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +00:00
shm: Don't leak socket path
This commit is contained in:
parent
97e93f8dd4
commit
df321edeaf
2 changed files with 2 additions and 0 deletions
|
@ -190,6 +190,7 @@ gst_shm_sink_finalize (GObject * object)
|
||||||
GstShmSink *self = GST_SHM_SINK (object);
|
GstShmSink *self = GST_SHM_SINK (object);
|
||||||
|
|
||||||
g_cond_clear (&self->cond);
|
g_cond_clear (&self->cond);
|
||||||
|
g_free (self->socket_path);
|
||||||
|
|
||||||
G_OBJECT_CLASS (parent_class)->finalize (object);
|
G_OBJECT_CLASS (parent_class)->finalize (object);
|
||||||
}
|
}
|
||||||
|
|
|
@ -156,6 +156,7 @@ gst_shm_src_finalize (GObject * object)
|
||||||
GstShmSrc *self = GST_SHM_SRC (object);
|
GstShmSrc *self = GST_SHM_SRC (object);
|
||||||
|
|
||||||
gst_poll_free (self->poll);
|
gst_poll_free (self->poll);
|
||||||
|
g_free (self->socket_path);
|
||||||
|
|
||||||
G_OBJECT_CLASS (parent_class)->finalize (object);
|
G_OBJECT_CLASS (parent_class)->finalize (object);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue