[rhythmbox] Fix memory leak in rb_gst_media_type_matches_profile



commit ad8ab010c133d7ea20f86e4c0e1d9f02b6895d58
Author: Christophe Fergeau <cfergeau redhat com>
Date:   Sat Jun 16 13:24:27 2012 +0200

    Fix memory leak in rb_gst_media_type_matches_profile
    
    'caps' is created with gst_caps_from_string so it must be unref'ed
    when it's no longer used.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=678208

 lib/rb-gst-media-types.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/lib/rb-gst-media-types.c b/lib/rb-gst-media-types.c
index 97c7881..2df026f 100644
--- a/lib/rb-gst-media-types.c
+++ b/lib/rb-gst-media-types.c
@@ -231,6 +231,8 @@ rb_gst_media_type_matches_profile (GstEncodingProfile *profile, const char *medi
 			}
 		}
 	}
+	gst_caps_unref (caps);
+
 	return matches;
 }
 



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