diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2015-06-08 20:17:07 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2015-06-08 20:19:42 +0100 |
commit | 6221c95d482e6111ffe8fffdde1b832192c00d8c (patch) | |
tree | db8287eb6d1b3e13e1448ebe7dd4a1b056b10b0f | |
parent | cb49acf158d77e6d52b250d38331144fe2a16b01 (diff) |
ximagesink, xvimagesink: fix string leaks when setting class hint
https://bugzilla.gnome.org/show_bug.cgi?id=750455
-rw-r--r-- | sys/ximage/ximagesink.c | 4 | ||||
-rw-r--r-- | sys/xvimage/xvcontext.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/ximage/ximagesink.c b/sys/ximage/ximagesink.c index 328a617e12..126e3cb75f 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 b04a49cacc..1af70b24da 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); |