mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-02 21:48:55 +00:00
ext/cairo/gsttextoverlay.c: Fix obvious memleak.
Original commit message from CVS: * ext/cairo/gsttextoverlay.c: Fix obvious memleak.
This commit is contained in:
parent
dbea08db34
commit
4fbda1f149
2 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2008-08-25 David Schleef <ds@schleef.org>
|
||||||
|
|
||||||
|
* ext/cairo/gsttextoverlay.c: Fix obvious memleak.
|
||||||
|
|
||||||
2008-08-25 Edward Hervey <edward.hervey@collabora.co.uk>
|
2008-08-25 Edward Hervey <edward.hervey@collabora.co.uk>
|
||||||
|
|
||||||
* gst/matroska/matroska-demux.c: (gst_matroska_demux_send_event),
|
* gst/matroska/matroska-demux.c: (gst_matroska_demux_send_event),
|
||||||
|
|
|
@ -410,8 +410,6 @@ gst_text_overlay_render_text (GstCairoTextOverlay * overlay,
|
||||||
if (textlen < 0)
|
if (textlen < 0)
|
||||||
textlen = strlen (text);
|
textlen = strlen (text);
|
||||||
|
|
||||||
string = g_strndup (text, textlen);
|
|
||||||
|
|
||||||
if (overlay->need_render) {
|
if (overlay->need_render) {
|
||||||
GST_DEBUG ("Rendering text '%s' on cairo RGBA surface", string);
|
GST_DEBUG ("Rendering text '%s' on cairo RGBA surface", string);
|
||||||
} else {
|
} else {
|
||||||
|
@ -421,6 +419,8 @@ gst_text_overlay_render_text (GstCairoTextOverlay * overlay,
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
string = g_strndup (text, textlen);
|
||||||
|
|
||||||
overlay->text_fill_image =
|
overlay->text_fill_image =
|
||||||
g_realloc (overlay->text_fill_image,
|
g_realloc (overlay->text_fill_image,
|
||||||
4 * overlay->width * overlay->font_height);
|
4 * overlay->width * overlay->font_height);
|
||||||
|
|
Loading…
Reference in a new issue