[totem] main: Fix warnings about GDateTime refcounts
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] main: Fix warnings about GDateTime refcounts
- Date: Fri, 31 Jan 2014 16:16:34 +0000 (UTC)
commit 111a86e0f14583b4386831208f71e5d9a078d2c3
Author: Bastien Nocera <hadess hadess net>
Date: Fri Jan 31 17:10:59 2014 +0100
main: Fix warnings about GDateTime refcounts
grl_media_get_modification_date() doesn't return a reference to
the GDateTime, so we shouldn't unref it.
src/totem-grilo.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/src/totem-grilo.c b/src/totem-grilo.c
index 1a4f509..d97f57c 100644
--- a/src/totem-grilo.c
+++ b/src/totem-grilo.c
@@ -443,7 +443,6 @@ update_media (GtkTreeStore *model,
g_clear_object (&thumbnail);
g_free (secondary);
- g_clear_pointer (&mtime, g_date_time_unref);
}
static void
@@ -522,7 +521,6 @@ add_media_to_model (GtkTreeStore *model,
g_clear_object (&thumbnail);
g_free (secondary);
- g_clear_pointer (&mtime, g_date_time_unref);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]