projects
/
platform
/
upstream
/
gstreamer.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
debugqroverlay: fix string leak
[platform/upstream/gstreamer.git]
/
subprojects
/
gst-plugins-bad
/
ext
/
qroverlay
/
gstdebugqroverlay.c
diff --git
a/subprojects/gst-plugins-bad/ext/qroverlay/gstdebugqroverlay.c
b/subprojects/gst-plugins-bad/ext/qroverlay/gstdebugqroverlay.c
index
0c5d8a2
..
1b6c67d
100644
(file)
--- a/
subprojects/gst-plugins-bad/ext/qroverlay/gstdebugqroverlay.c
+++ b/
subprojects/gst-plugins-bad/ext/qroverlay/gstdebugqroverlay.c
@@
-240,7
+240,7
@@
get_qrcode_content (GstBaseQROverlay * base, GstBuffer * buf,
GstVideoInfo * info, gboolean * reuse_prev)
{
GstDebugQROverlay *filter = GST_DEBUG_QR_OVERLAY (base);
GstVideoInfo * info, gboolean * reuse_prev)
{
GstDebugQROverlay *filter = GST_DEBUG_QR_OVERLAY (base);
- GString *res
= g_string_new (NULL)
;
+ GString *res;
JsonGenerator *jgen;
gchar *framerate_string = g_strdup_printf ("%d/%d", info->fps_n, info->fps_d);
JsonGenerator *jgen;
gchar *framerate_string = g_strdup_printf ("%d/%d", info->fps_n, info->fps_d);
@@
-276,9
+276,10
@@
get_qrcode_content (GstBaseQROverlay * base, GstBuffer * buf,
jgen = json_generator_new ();
json_node_set_object (root, jobj);
json_generator_set_root (jgen, root);
jgen = json_generator_new ();
json_node_set_object (root, jobj);
json_generator_set_root (jgen, root);
+ res = g_string_new (NULL);
res = json_generator_to_gstring (jgen, res);
g_object_unref (jgen);
filter->frame_number++;
res = json_generator_to_gstring (jgen, res);
g_object_unref (jgen);
filter->frame_number++;
- return g_str
dup (g_string_free (res, FALSE)
);
+ return g_str
ing_free (res, FALSE
);
}
}