[rhythmbox] gst: Take a reference on objects returned by iterators



commit 40f48d73b238e00202566fe64f84ad1a22289905
Author: Edward Hervey <edward hervey collabora co uk>
Date:   Tue Jul 3 11:16:26 2012 +0200

    gst: Take a reference on objects returned by iterators

 backends/gstreamer/rb-player-gst-helper.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/backends/gstreamer/rb-player-gst-helper.c b/backends/gstreamer/rb-player-gst-helper.c
index b045c13..7eda46f 100644
--- a/backends/gstreamer/rb-player-gst-helper.c
+++ b/backends/gstreamer/rb-player-gst-helper.c
@@ -135,7 +135,7 @@ rb_player_gst_find_element_with_property (GstElement *element, const char *prope
 				      (GCompareFunc) find_property_element,
 				      &r,
 				      (gpointer) property)) {
-		result = g_value_get_object (&r);
+		result = g_value_dup_object (&r);
 		g_value_unset (&r);
 	}
 	gst_iterator_free (iter);



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