sys/: Fix leak (#351502).

Original commit message from CVS:
* sys/ximage/ximagesink.c: (gst_ximagesink_get_property):
* sys/xvimage/xvimagesink.c: (gst_xvimagesink_get_property):
Fix leak (#351502).
This commit is contained in:
Tim-Philipp Müller 2006-08-15 19:20:16 +00:00
parent 89ee2ff0c5
commit f65205edb5
3 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2006-08-15 Tim-Philipp Müller <tim at centricular dot net>
* sys/ximage/ximagesink.c: (gst_ximagesink_get_property):
* sys/xvimage/xvimagesink.c: (gst_xvimagesink_get_property):
Fix leak (#351502).
2006-08-15 Tim-Philipp Müller <tim at centricular dot net>
* docs/plugins/gst-plugins-base-plugins-docs.sgml:

View file

@ -1904,7 +1904,7 @@ gst_ximagesink_get_property (GObject * object, guint prop_id,
switch (prop_id) {
case PROP_DISPLAY:
g_value_set_string (value, g_strdup (ximagesink->display_name));
g_value_set_string (value, ximagesink->display_name);
break;
case PROP_SYNCHRONOUS:
g_value_set_boolean (value, ximagesink->synchronous);

View file

@ -2534,7 +2534,7 @@ gst_xvimagesink_get_property (GObject * object, guint prop_id,
g_value_set_int (value, xvimagesink->saturation);
break;
case ARG_DISPLAY:
g_value_set_string (value, g_strdup (xvimagesink->display_name));
g_value_set_string (value, xvimagesink->display_name);
break;
case ARG_SYNCHRONOUS:
g_value_set_boolean (value, xvimagesink->synchronous);