mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-01 21:18:52 +00:00
leak plugs and style fixes
Original commit message from CVS: leak plugs and style fixes
This commit is contained in:
parent
4f3158a64c
commit
195d892034
2 changed files with 12 additions and 3 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2004-04-01 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||||
|
|
||||||
|
* gst-libs/gst/gconf/gconf.c: (gst_gconf_get_string),
|
||||||
|
(gst_gconf_render_bin_from_key):
|
||||||
|
leak plugging and style fixing
|
||||||
|
|
||||||
2004-03-31 David Schleef <ds@schleef.org>
|
2004-03-31 David Schleef <ds@schleef.org>
|
||||||
|
|
||||||
* gst/audioscale/gstaudioscale.c: (gst_audioscale_expand_value),
|
* gst/audioscale/gstaudioscale.c: (gst_audioscale_expand_value),
|
||||||
|
|
|
@ -85,7 +85,8 @@ gst_bin_find_unconnected_pad (GstBin * bin, GstPadDirection direction)
|
||||||
*
|
*
|
||||||
* Get GConf key @key's string value.
|
* Get GConf key @key's string value.
|
||||||
*
|
*
|
||||||
* Returns: a #gchar string containing @key's value.
|
* Returns: a newly allocated #gchar string containing @key's value,
|
||||||
|
* or NULL in the case of an error..
|
||||||
*/
|
*/
|
||||||
gchar *
|
gchar *
|
||||||
gst_gconf_get_string (const gchar * key)
|
gst_gconf_get_string (const gchar * key)
|
||||||
|
@ -99,10 +100,11 @@ gst_gconf_get_string (const gchar * key)
|
||||||
g_free (full_key);
|
g_free (full_key);
|
||||||
|
|
||||||
if (error) {
|
if (error) {
|
||||||
g_print ("gst_gconf_get_string: error: %s\n", error->message);
|
g_warning ("gst_gconf_get_string: error: %s\n", error->message);
|
||||||
g_error_free (error);
|
g_error_free (error);
|
||||||
|
return NULL;
|
||||||
}
|
}
|
||||||
/* FIXME: decide if we want to strdup this value; if we do, check for NULL */
|
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -181,6 +183,7 @@ gst_gconf_render_bin_from_key (const gchar * key)
|
||||||
value = gst_gconf_get_string (key);
|
value = gst_gconf_get_string (key);
|
||||||
if (value)
|
if (value)
|
||||||
bin = gst_gconf_render_bin_from_description (value);
|
bin = gst_gconf_render_bin_from_description (value);
|
||||||
|
g_free (value);
|
||||||
return bin;
|
return bin;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue