diff options
author | Víctor Manuel Jáquez Leal <vjaquez@igalia.com> | 2015-02-11 13:42:54 +0100 |
---|---|---|
committer | Lionel Landwerlin <llandwerlin@gmail.com> | 2015-05-09 15:05:41 +0100 |
commit | f15e6e85634af0ae8ea7866d6d8c274365e68645 (patch) | |
tree | 7d708eccc04cd4c7338bc446dc9c4c45c0ea66ea /clutter-gst | |
parent | 8fc7d51a60b88e3a2cecff1eb262bb078f0d13db (diff) | |
download | clutter-gst-f15e6e85634af0ae8ea7866d6d8c274365e68645.tar.gz |
memory leaks at logging
The function gst_caps_to_string () return a new allocated string
that should be free.
Some logging instructions use that function without freeing the
allocated string. This patch replaces the function with
GST_PTR_FORMAT magic, and in the case of the tests, the free()
is added.
https://bugzilla.gnome.org/show_bug.cgi?id=744326
Diffstat (limited to 'clutter-gst')
-rw-r--r-- | clutter-gst/clutter-gst-video-sink.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clutter-gst/clutter-gst-video-sink.c b/clutter-gst/clutter-gst-video-sink.c index b4f77a3..640971d 100644 --- a/clutter-gst/clutter-gst-video-sink.c +++ b/clutter-gst/clutter-gst-video-sink.c @@ -1812,7 +1812,7 @@ clutter_gst_video_sink_get_caps (GstBaseSink *bsink, ClutterGstVideoSink *sink; sink = CLUTTER_GST_VIDEO_SINK (bsink); - GST_DEBUG_OBJECT (bsink, "Getting caps for %s", gst_caps_to_string (filter)); + GST_DEBUG_OBJECT (bsink, "Getting caps for %" GST_PTR_FORMAT, filter); if (sink->priv->caps == NULL) return NULL; @@ -1940,7 +1940,7 @@ clutter_gst_video_sink_set_caps (GstBaseSink *bsink, sink = CLUTTER_GST_VIDEO_SINK (bsink); priv = sink->priv; - GST_INFO_OBJECT (bsink, "Setting caps to %s", gst_caps_to_string (caps)); + GST_INFO_OBJECT (bsink, "Setting caps to %" GST_PTR_FORMAT, caps); if (!clutter_gst_video_sink_parse_caps (caps, sink, FALSE)) return FALSE; |