[libdmapsharing] Fix use of boxing in test-dmap-av-record.c and test-dmap-image-record.c



commit f7e52a7f6951790aa3fef3c51cea615f929a1f2b
Author: W. Michael Petullo <mike flyn org>
Date:   Mon Sep 3 13:16:16 2018 -0400

    Fix use of boxing in test-dmap-av-record.c and test-dmap-image-record.c
    
    Signed-off-by: W. Michael Petullo <mike flyn org>

 libdmapsharing/test-dmap-av-record.c    | 2 +-
 libdmapsharing/test-dmap-image-record.c | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libdmapsharing/test-dmap-av-record.c b/libdmapsharing/test-dmap-av-record.c
index f47bc62..07e2e02 100644
--- a/libdmapsharing/test-dmap-av-record.c
+++ b/libdmapsharing/test-dmap-av-record.c
@@ -158,7 +158,7 @@ test_dmap_av_record_set_property (GObject *object,
                        if (record->priv->hash) {
                                g_array_unref(record->priv->hash);
                        }
-                       record->priv->hash = g_value_dup_boxed (value);
+                       record->priv->hash = g_value_get_boxed (value);
                        break;
                 default:
                         G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
diff --git a/libdmapsharing/test-dmap-image-record.c b/libdmapsharing/test-dmap-image-record.c
index f8d5e42..d511c93 100644
--- a/libdmapsharing/test-dmap-image-record.c
+++ b/libdmapsharing/test-dmap-image-record.c
@@ -98,13 +98,13 @@ test_dmap_image_record_set_property (GObject *object,
                        if (record->priv->thumbnail) {
                                g_array_unref(record->priv->thumbnail);
                        }
-                        record->priv->thumbnail = g_value_dup_boxed (value);
+                        record->priv->thumbnail = g_value_get_boxed (value);
                         break;
                 case PROP_HASH:
                        if (record->priv->hash) {
                                g_array_unref(record->priv->hash);
                        }
-                        record->priv->hash = g_value_dup_boxed (value);
+                        record->priv->hash = g_value_get_boxed (value);
                         break;
                 case PROP_COMMENTS:
                        g_free (record->priv->comments);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]