[grilo-plugins] vimeo: Plug a leak
- From: Juan A. Suarez Romero <jasuarez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins] vimeo: Plug a leak
- Date: Thu, 3 Mar 2011 19:52:13 +0000 (UTC)
commit f7efacc1f04a20abf86243df786c71abfbc01d4b
Author: Juan A. Suarez Romero <jasuarez igalia com>
Date: Thu Mar 3 20:51:51 2011 +0100
vimeo: Plug a leak
Do not leak iso8601 date.
Signed-off-by: Juan A. Suarez Romero <jasuarez igalia com>
src/vimeo/grl-vimeo.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/vimeo/grl-vimeo.c b/src/vimeo/grl-vimeo.c
index 0d5a397..a11cd02 100644
--- a/src/vimeo/grl-vimeo.c
+++ b/src/vimeo/grl-vimeo.c
@@ -249,7 +249,9 @@ update_media (GrlMedia *media, GHashTable *video)
str = g_hash_table_lookup (video, VIMEO_VIDEO_UPLOAD_DATE);
if (str)
{
- grl_media_set_date (media, str_to_iso8601(str));
+ gchar *date = str_to_iso8601(str);
+ grl_media_set_date (media, date);
+ g_free (date);
}
str = g_hash_table_lookup (video, VIMEO_VIDEO_THUMBNAIL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]