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:
2f177a7
)
subparse: fix GError leak
author
Tim-Philipp Müller
<tim@centricular.net>
Sun, 16 Dec 2012 12:34:14 +0000
(12:34 +0000)
committer
Tim-Philipp Müller
<tim@centricular.net>
Sun, 16 Dec 2012 12:34:14 +0000
(12:34 +0000)
gst/subparse/gstsubparse.c
patch
|
blob
|
history
diff --git
a/gst/subparse/gstsubparse.c
b/gst/subparse/gstsubparse.c
index
cea917c
..
9ba447e
100644
(file)
--- a/
gst/subparse/gstsubparse.c
+++ b/
gst/subparse/gstsubparse.c
@@
-1740,7
+1740,6
@@
gst_subparse_type_find (GstTypeFind * tf, gpointer private)
* otherwise convert as always */
if (!g_utf8_validate (str, 128, &end) && (end - str) < 120) {
gchar *converted_str;
- GError *err = NULL;
gsize tmp;
const gchar *enc;
@@
-1752,7
+1751,7
@@
gst_subparse_type_find (GstTypeFind * tf, gpointer private)
enc = "ISO-8859-15";
}
}
- converted_str = gst_convert_to_utf8 (str, 128, enc, &tmp,
&err
);
+ converted_str = gst_convert_to_utf8 (str, 128, enc, &tmp,
NULL
);
if (converted_str != NULL) {
g_free (str);
str = converted_str;