[sound-juicer] Fix memory leak in rb_gst_media_type_matches_profile
- From: Christophe Fergeau <teuf src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sound-juicer] Fix memory leak in rb_gst_media_type_matches_profile
- Date: Mon, 18 Aug 2014 13:29:00 +0000 (UTC)
commit 004a2d9404b03984576480a727a13dd75579da9b
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
libjuicer/rb-gst-media-types.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libjuicer/rb-gst-media-types.c b/libjuicer/rb-gst-media-types.c
index 42a22f4..ef05b9e 100644
--- a/libjuicer/rb-gst-media-types.c
+++ b/libjuicer/rb-gst-media-types.c
@@ -176,6 +176,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]