diff --git a/cell-selector/lib-cell-renderer.c b/cell-selector/lib-cell-renderer.c index d52bd6c..6be0857 100644 --- a/cell-selector/lib-cell-renderer.c +++ b/cell-selector/lib-cell-renderer.c @@ -88,11 +88,13 @@ static void lib_cell_renderer_set_property(GObject *object, g_value_init(&val, G_TYPE_STRING); g_value_set_string(&val, ((struct gds_library *)g_value_get_pointer(value))->name); g_object_set_property(object, "text", &val); + g_value_unset(&val); break; case PROP_CELL: g_value_init(&val, G_TYPE_STRING); g_value_set_string(&val, ((struct gds_cell *)g_value_get_pointer(value))->name); g_object_set_property(object, "text", &val); + g_value_unset(&val); break; case PROP_ERROR_LEVEL: /* Set cell color according to error level */ @@ -100,6 +102,7 @@ static void lib_cell_renderer_set_property(GObject *object, convert_error_level_to_color(&color, g_value_get_uint(value)); g_value_set_boxed(&val, &color); g_object_set_property(object, "foreground-rgba", &val); + g_value_unset(&val); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID(object, param_id, pspec); diff --git a/output-renderers/gds-output-renderer.c b/output-renderers/gds-output-renderer.c index 04cc18a..fd93999 100644 --- a/output-renderers/gds-output-renderer.c +++ b/output-renderers/gds-output-renderer.c @@ -100,6 +100,11 @@ static void gds_output_renderer_dispose(GObject *self_obj) if (priv->output_file) g_free(priv->output_file); + if (priv->idle_function_parameters.status_message) { + g_free(priv->idle_function_parameters.status_message); + priv->idle_function_parameters.status_message = NULL; + } + g_clear_object(&priv->layer_settings); /* Chain up to parent class */