From dab602398544df129f9aa451d270cf19a1aa12a7 Mon Sep 17 00:00:00 2001 From: Patrick Ward Date: Wed, 15 Jan 2014 12:08:13 -0800 Subject: Fix invalid free on gchar pointer The priv->current_background_css_props variable is sometimes assigned to a const gchar. Changing the const gchar to a malloc'd gchar pointer allows the existing g_free to free priv->current_background_css_props normally without checking for const values. [endlessm/eos-sdk#478] --- endless/eoswindow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'endless') diff --git a/endless/eoswindow.c b/endless/eoswindow.c index c06b1a7..42b3cae 100644 --- a/endless/eoswindow.c +++ b/endless/eoswindow.c @@ -274,7 +274,7 @@ format_background_css (EosPageManager *pm, // transparent. So any css styling of EosWindow will "show through" the // pages. if (background_uri == NULL) - return TRANSPARENT_FRAME_CSS_PROPERTIES; + return g_strdup (TRANSPARENT_FRAME_CSS_PROPERTIES); return g_strdup_printf (BACKGROUND_FRAME_CSS_PROPERTIES_TEMPLATE, background_uri, background_size, -- cgit v1.2.3