[gnome-photos] dlna-renderer, dlna-renderers-manager: Add explicit casts



commit ee4cd6f24897b41da5d1d32a0adf1be229b14580
Author: Debarshi Ray <debarshir gnome org>
Date:   Wed Jun 3 08:57:46 2015 +0200

    dlna-renderer, dlna-renderers-manager: Add explicit casts

 src/photos-dlna-renderer.c          |    4 ++--
 src/photos-dlna-renderers-manager.c |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/photos-dlna-renderer.c b/src/photos-dlna-renderer.c
index 774a294..8f7fc34 100644
--- a/src/photos-dlna-renderer.c
+++ b/src/photos-dlna-renderer.c
@@ -1,7 +1,7 @@
 /*
  * Photos - access, organize and share your photos on GNOME
  * Copyright © 2013 Intel Corporation. All rights reserved.
- * Copyright © 2013, 2014 Red Hat, Inc.
+ * Copyright © 2013, 2014, 2015 Red Hat, Inc.
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
@@ -82,7 +82,7 @@ photos_dlna_renderer_dispose (GObject *object)
   g_clear_object (&priv->device);
   g_clear_object (&priv->push_host);
   g_clear_object (&priv->player);
-  g_clear_pointer (&priv->urls_to_item, g_hash_table_unref);
+  g_clear_pointer (&priv->urls_to_item, (GDestroyNotify) g_hash_table_unref);
 
   G_OBJECT_CLASS (photos_dlna_renderer_parent_class)->dispose (object);
 }
diff --git a/src/photos-dlna-renderers-manager.c b/src/photos-dlna-renderers-manager.c
index 1159d7e..fa43546 100644
--- a/src/photos-dlna-renderers-manager.c
+++ b/src/photos-dlna-renderers-manager.c
@@ -58,7 +58,7 @@ photos_dlna_renderers_manager_dispose (GObject *object)
   PhotosDlnaRenderersManagerPrivate *priv = self->priv;
 
   g_clear_object (&priv->proxy);
-  g_clear_pointer (&priv->renderers, g_hash_table_unref);
+  g_clear_pointer (&priv->renderers, (GDestroyNotify) g_hash_table_unref);
   g_clear_error (&priv->error);
 
   G_OBJECT_CLASS (photos_dlna_renderers_manager_parent_class)->dispose (object);


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