[grilo-plugins] grl-raitv: Free data when operation is finished
- From: Juan A. Suarez Romero <jasuarez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins] grl-raitv: Free data when operation is finished
- Date: Fri, 6 Sep 2013 08:20:42 +0000 (UTC)
commit 9b52ad442caeb0fc260306a9368360ff9d2d3ed1
Author: Jacobo Aragunde PĂ©rez <jaragunde igalia com>
Date: Wed Sep 4 17:15:02 2013 +0200
grl-raitv: Free data when operation is finished
src/raitv/grl-raitv.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/src/raitv/grl-raitv.c b/src/raitv/grl-raitv.c
index 474db8c..e921d1c 100644
--- a/src/raitv/grl-raitv.c
+++ b/src/raitv/grl-raitv.c
@@ -564,7 +564,6 @@ proxy_call_search_grlnet_async_cb (GObject *source_object,
0,
op->user_data,
NULL);
- raitv_operation_free (op);
}
else {
//Continue the search
@@ -774,7 +773,6 @@ proxy_call_browse_grlnet_async_cb (GObject *source_object,
0,
op->user_data,
NULL);
- raitv_operation_free (op);
}
else {
//Continue the search
@@ -1187,7 +1185,7 @@ grl_raitv_source_browse (GrlSource *source,
op->count = op->length;
op->offset = 0;
- grl_operation_set_data (bs->operation_id, op);
+ grl_operation_set_data_full (bs->operation_id, op, (GDestroyNotify) raitv_operation_free);
RaitvMediaType type = classify_media_id (container_id);
switch (type)
@@ -1234,7 +1232,7 @@ grl_raitv_source_search (GrlSource *source,
op->offset = 0;
op->text = ss->text;
- grl_operation_set_data (ss->operation_id, op);
+ grl_operation_set_data_full (ss->operation_id, op, (GDestroyNotify) raitv_operation_free);
g_raitv_videos_search(op);
}
@@ -1306,7 +1304,7 @@ grl_raitv_source_resolve (GrlSource *source,
op->user_data = rs->user_data;
op->media = rs->media;
- grl_operation_set_data (rs->operation_id, op);
+ grl_operation_set_data_full (rs->operation_id, op, (GDestroyNotify) raitv_operation_free);
urltarget = g_strdup_printf ("http://www.rai.tv/dl/RaiTV/programmi/media/%s.html",
grl_media_get_id(rs->media));
@@ -1338,7 +1336,7 @@ grl_raitv_source_resolve (GrlSource *source,
op->user_data = rs->user_data;
op->media = rs->media;
- grl_operation_set_data (rs->operation_id, op);
+ grl_operation_set_data_full (rs->operation_id, op, (GDestroyNotify) raitv_operation_free);
urltarget =
g_strdup_printf("%s/%s.html","http://www.rai.tv/dl/RaiTV/programmi/media",grl_media_get_id(rs->media));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]