[grilo-plugins] lastfm-albumart: Do not leak data stored in operation
- From: Juan A. Suarez Romero <jasuarez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins] lastfm-albumart: Do not leak data stored in operation
- Date: Fri, 15 Apr 2011 07:16:39 +0000 (UTC)
commit e6531f478740d2ba735eebddc91e643b117c8a63
Author: Juan A. Suarez Romero <jasuarez igalia com>
Date: Thu Apr 14 14:27:43 2011 +0000
lastfm-albumart: Do not leak data stored in operation
Signed-off-by: Juan A. Suarez Romero <jasuarez igalia com>
src/metadata/lastfm-albumart/grl-lastfm-albumart.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/metadata/lastfm-albumart/grl-lastfm-albumart.c b/src/metadata/lastfm-albumart/grl-lastfm-albumart.c
index f047e5e..4c802a1 100644
--- a/src/metadata/lastfm-albumart/grl-lastfm-albumart.c
+++ b/src/metadata/lastfm-albumart/grl-lastfm-albumart.c
@@ -196,12 +196,21 @@ read_done_cb (GObject *source_object,
{
GrlMetadataSourceResolveSpec *rs =
(GrlMetadataSourceResolveSpec *) user_data;
+ GCancellable *cancellable;
GError *error = NULL;
GError *wc_error = NULL;
GrlRelatedKeys *relkeys;
gchar *content = NULL;
gchar *image = NULL;
+ /* Get rid of stored operation data */
+ cancellable =
+ grl_metadata_source_get_operation_data (GRL_METADATA_SOURCE (rs->source),
+ rs->resolve_id);
+ if (cancellable) {
+ g_object_unref (cancellable);
+ }
+
if (!grl_net_wc_request_finish (GRL_NET_WC (source_object),
res,
&content,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]