summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2015-06-08 20:17:07 +0100
committerTim-Philipp Müller <tim@centricular.com>2015-06-08 20:19:42 +0100
commit6221c95d482e6111ffe8fffdde1b832192c00d8c (patch)
treedb8287eb6d1b3e13e1448ebe7dd4a1b056b10b0f /sys
parentcb49acf158d77e6d52b250d38331144fe2a16b01 (diff)
downloadgst-plugins-base-6221c95d482e6111ffe8fffdde1b832192c00d8c.tar.gz
gst-plugins-base-6221c95d482e6111ffe8fffdde1b832192c00d8c.tar.xz
ximagesink, xvimagesink: fix string leaks when setting class hint
https://bugzilla.gnome.org/show_bug.cgi?id=750455
Diffstat (limited to 'sys')
-rw-r--r--sys/ximage/ximagesink.c4
-rw-r--r--sys/xvimage/xvcontext.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/ximage/ximagesink.c b/sys/ximage/ximagesink.c
index 328a617e1..126e3cb75 100644
--- a/sys/ximage/ximagesink.c
+++ b/sys/ximage/ximagesink.c
@@ -406,8 +406,8 @@ gst_ximagesink_xwindow_set_title (GstXImageSink * ximagesink,
}
if (hint) {
- hint->res_name = g_strdup (app_name);
- hint->res_class = g_strdup ("GStreamer");
+ hint->res_name = (char *) app_name;
+ hint->res_class = (char *) "GStreamer";
XSetClassHint (ximagesink->xcontext->disp, xwindow->win, hint);
}
XFree (hint);
diff --git a/sys/xvimage/xvcontext.c b/sys/xvimage/xvcontext.c
index b04a49cac..1af70b24d 100644
--- a/sys/xvimage/xvcontext.c
+++ b/sys/xvimage/xvcontext.c
@@ -1087,8 +1087,8 @@ gst_xwindow_set_title (GstXWindow * window, const gchar * title)
XFree (xproperty.value);
if (hint) {
- hint->res_name = g_strdup (title);
- hint->res_class = g_strdup ("GStreamer");
+ hint->res_name = (char *) title;
+ hint->res_class = (char *) "GStreamer";
XSetClassHint (context->disp, window->win, hint);
}
XFree (hint);