summaryrefslogtreecommitdiff
path: root/src/main/print-vars.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/print-vars.c')
-rw-r--r--src/main/print-vars.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/print-vars.c b/src/main/print-vars.c
index 1a5cf5c..27d9545 100644
--- a/src/main/print-vars.c
+++ b/src/main/print-vars.c
@@ -1,5 +1,5 @@
/*
- * "$Id: print-vars.c,v 1.94 2012/01/19 13:26:02 m0m Exp $"
+ * "$Id: print-vars.c,v 1.95 2014/01/04 00:31:38 rlk Exp $"
*
* Print plug-in driver utility functions for the GIMP.
*
@@ -129,7 +129,7 @@ value_freefunc(void *item)
case STP_PARAMETER_TYPE_STRING_LIST:
case STP_PARAMETER_TYPE_FILE:
case STP_PARAMETER_TYPE_RAW:
- stp_free((void *) v->value.rval.data);
+ stp_free(stpi_cast_safe(v->value.rval.data));
break;
case STP_PARAMETER_TYPE_CURVE:
if (v->value.cval)
@@ -466,7 +466,7 @@ set_raw_parameter(stp_list_t *list, const char *parameter, const char *value,
val = (value_t *) stp_list_item_get_data(item);
if (val->active == STP_PARAMETER_DEFAULTED)
val->active = STP_PARAMETER_ACTIVE;
- stp_free((void *) val->value.rval.data);
+ stp_free(stpi_cast_safe(val->value.rval.data));
}
else
{
@@ -2061,7 +2061,7 @@ fill_vars_from_xmltree(stp_mxml_node_t *prop, stp_mxml_node_t *root,
type = STP_PARAMETER_TYPE_DOUBLE;
stp_deprintf(STP_DBG_XML, " Set raw '%s' to '%s'\n",
p_name, cnode->value.text.string);
- stp_free((void *) raw->data);
+ stp_free(stpi_cast_safe(raw->data));
stp_free(raw);
}
}