[grilo/0.2.x] Avoid leak in grl_source_get_media_from_uri()



commit 5fd235fcadb524fb323ee627b231b3c6aed086aa
Author: Mathias Hasselmann <mathias openismus com>
Date:   Tue Aug 28 10:47:13 2012 +0200

    Avoid leak in grl_source_get_media_from_uri()
    
    This fixes https://bugzilla.gnome.org/show_bug.cgi?id=682855

 src/grl-source.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/grl-source.c b/src/grl-source.c
index 0d4a708..ab65cca 100644
--- a/src/grl-source.c
+++ b/src/grl-source.c
@@ -1773,6 +1773,7 @@ media_from_uri_result_relay_cb (GrlSource *source,
     if (_error != error) {
       g_error_free (_error);
     }
+    operation_set_finished (rrc->operation_id);
     resolve_relay_free (rrc);
     return;
   }
@@ -1790,6 +1791,7 @@ media_from_uri_result_relay_cb (GrlSource *source,
   }
 
   rrc->user_callback (source, rrc->operation_id, media, rrc->user_data, error);
+  operation_set_finished (rrc->operation_id);
   resolve_relay_free (rrc);
 }
 



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