diff options
author | Michal Ratajsky <[email protected]> | 2014-08-20 18:53:26 +0200 |
---|---|---|
committer | Michal Ratajsky <[email protected]> | 2014-08-20 18:53:26 +0200 |
commit | 0325b6223a23ebd75fbd8c9244baab00facec126 (patch) | |
tree | 8547bdc4a9e875d931eddbeb81e34ec37ddfbfef /libmatemixer/matemixer-stream.c | |
parent | 9956b2a9465c538c8792235c1ee02d2f90b84641 (diff) | |
download | libmatemixer-0325b6223a23ebd75fbd8c9244baab00facec126.tar.bz2 libmatemixer-0325b6223a23ebd75fbd8c9244baab00facec126.tar.xz |
Fix some refcounting and stream control parent setting issues
Diffstat (limited to 'libmatemixer/matemixer-stream.c')
-rw-r--r-- | libmatemixer/matemixer-stream.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libmatemixer/matemixer-stream.c b/libmatemixer/matemixer-stream.c index 03902bd..aa1afd7 100644 --- a/libmatemixer/matemixer-stream.c +++ b/libmatemixer/matemixer-stream.c @@ -257,10 +257,9 @@ mate_mixer_stream_set_property (GObject *object, /* Construct-only object */ stream->priv->device = g_value_get_object (value); - if (stream->priv->device != NULL) { + if (stream->priv->device != NULL) g_object_add_weak_pointer (G_OBJECT (stream->priv->device), (gpointer *) &stream->priv->device); - } break; case PROP_DEFAULT_CONTROL: /* Construct-only object */ |