[tracker-miners/wip/carlosg/shuffle-libtracker-miner: 85/116] libtracker-miner: Drop GDestroyNotify cast



commit c1fcf4f688094fce6f408d7a3e859d6ebfcfacd7
Author: Carlos Garnacho <carlosg gnome org>
Date:   Mon Oct 1 01:14:33 2018 +0200

    libtracker-miner: Drop GDestroyNotify cast
    
    It defeats g_clear_pointer() type checks, which causes a warning.

 src/libtracker-miner/tracker-decorator.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-decorator.c b/src/libtracker-miner/tracker-decorator.c
index fbe222a2c..1b8c963a6 100644
--- a/src/libtracker-miner/tracker-decorator.c
+++ b/src/libtracker-miner/tracker-decorator.c
@@ -374,7 +374,7 @@ decorator_commit_cb (GObject      *object,
                g_ptr_array_unref (errors);
        }
 
-       g_clear_pointer (&priv->commit_buffer, (GDestroyNotify) g_array_unref);
+       g_clear_pointer (&priv->commit_buffer, g_array_unref);
 
        if (!decorator_check_commit (decorator))
                decorator_cache_next_items (decorator);
@@ -1154,8 +1154,8 @@ tracker_decorator_finalize (GObject *object)
        g_hash_table_destroy (priv->tasks);
        g_array_unref (priv->classes);
        g_array_unref (priv->prepended_ids);
-       g_clear_pointer (&priv->sparql_buffer, (GDestroyNotify) g_array_unref);
-       g_clear_pointer (&priv->commit_buffer, (GDestroyNotify) g_array_unref);
+       g_clear_pointer (&priv->sparql_buffer, g_array_unref);
+       g_clear_pointer (&priv->commit_buffer, g_array_unref);
        g_sequence_free (priv->blacklist_items);
        g_free (priv->data_source);
        g_timer_destroy (priv->timer);


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