mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
fix object refcounting some more
This commit is contained in:
parent
f6bb35cb98
commit
e632540983
5 changed files with 63 additions and 17 deletions
|
|
@ -171,14 +171,22 @@ pv_source_constructed (GObject * object)
|
|||
G_OBJECT_CLASS (pv_source_parent_class)->constructed (object);
|
||||
}
|
||||
|
||||
static void
|
||||
pv_source_dispose (GObject * object)
|
||||
{
|
||||
PvSource *source = PV_SOURCE (object);
|
||||
|
||||
source_unregister_object (source);
|
||||
|
||||
G_OBJECT_CLASS (pv_source_parent_class)->dispose (object);
|
||||
}
|
||||
|
||||
static void
|
||||
pv_source_finalize (GObject * object)
|
||||
{
|
||||
PvSource *source = PV_SOURCE (object);
|
||||
PvSourcePrivate *priv = source->priv;
|
||||
|
||||
source_unregister_object (source);
|
||||
|
||||
g_free (priv->object_path);
|
||||
g_free (priv->name);
|
||||
if (priv->properties)
|
||||
|
|
@ -239,8 +247,9 @@ pv_source_class_init (PvSourceClass * klass)
|
|||
|
||||
g_type_class_add_private (klass, sizeof (PvSourcePrivate));
|
||||
|
||||
gobject_class->finalize = pv_source_finalize;
|
||||
gobject_class->constructed = pv_source_constructed;
|
||||
gobject_class->dispose = pv_source_dispose;
|
||||
gobject_class->finalize = pv_source_finalize;
|
||||
gobject_class->set_property = pv_source_set_property;
|
||||
gobject_class->get_property = pv_source_get_property;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue