projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8c7ed7c
)
kate: fix buffer leak in katetag
author
Tim-Philipp Müller
<tim@centricular.net>
Sat, 27 Apr 2013 11:28:42 +0000
(12:28 +0100)
committer
Tim-Philipp Müller
<tim@centricular.net>
Sat, 27 Apr 2013 11:28:58 +0000
(12:28 +0100)
Makes unit test valgrind clean.
https://bugzilla.gnome.org/show_bug.cgi?id=697071
ext/kate/gstkatetag.c
patch
|
blob
|
history
diff --git
a/ext/kate/gstkatetag.c
b/ext/kate/gstkatetag.c
index 4aa3a4fa3f8eb8215808e73013bc92a169d4c379..b7d88ed66e5a1d5de55424aad21ca54e4a1ced5b 100644
(file)
--- a/
ext/kate/gstkatetag.c
+++ b/
ext/kate/gstkatetag.c
@@
-281,6
+281,7
@@
gst_kate_tag_parse_packet (GstKateParse * parse, GstBuffer * buffer)
gst_buffer_unmap (buffer, &info);
new_buffer = gst_buffer_copy (buffer);
gst_buffer_unmap (buffer, &info);
new_buffer = gst_buffer_copy (buffer);
+ gst_buffer_unref (buffer);
buffer = new_buffer;
if (!gst_buffer_map (buffer, &info, GST_MAP_READWRITE)) {
buffer = new_buffer;
if (!gst_buffer_map (buffer, &info, GST_MAP_READWRITE)) {