[tracker-miner-chatlog] text-event: Plug leak



commit a26c7fa0510e5f62618c49207ccd8e8fcaf02f28
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sun Jan 17 20:23:00 2016 +0100

    text-event: Plug leak
    
    g_set_object() already takes a ref, no need to g_value_dup_object()
    then.

 src/text-event.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/text-event.c b/src/text-event.c
index 021641e..bc7e2a8 100644
--- a/src/text-event.c
+++ b/src/text-event.c
@@ -76,10 +76,10 @@ tmc_text_event_set_property (GObject      *object,
 
        switch (prop_id) {
        case PROP_CHANNEL:
-               g_set_object (&priv->channel, g_value_dup_object (value));
+               g_set_object (&priv->channel, g_value_get_object (value));
                break;
        case PROP_FROM:
-               g_set_object (&priv->from, g_value_dup_object (value));
+               g_set_object (&priv->from, g_value_get_object (value));
                break;
        case PROP_TEXT:
                g_clear_pointer (&priv->text, g_free);


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