gplugin/gplugin

some random cleanups for tcc
feature/random-cleanups
2019-07-17, Gary Kramlich
88ced24629f1
Parents 636db4dd6064
Children ad6de87ea9be
some random cleanups for tcc
--- a/tcc/gplugin-tcc-plugin.c Wed Jul 17 07:54:26 2019 -0500
+++ b/tcc/gplugin-tcc-plugin.c Wed Jul 17 07:54:37 2019 -0500
@@ -145,7 +145,7 @@
GPluginTccPluginPrivate *priv = gplugin_tcc_plugin_get_instance_private(GPLUGIN_TCC_PLUGIN(obj));
g_clear_pointer(&priv->s, tcc_delete);
- g_clear_pointer(&priv->mem);
+ g_clear_pointer(&priv->mem, g_free);
g_clear_pointer(&priv->filename, g_free);
g_clear_object(&priv->loader);
@@ -176,7 +176,7 @@
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY
);
- properties[PROP_MEM] =g_param_spec_pointer(
+ properties[PROP_MEM] = g_param_spec_pointer(
"memory", "memory",
"The memory allocated for the symbol table for the plugin",
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY
--- a/tcc/meson.build Wed Jul 17 07:54:26 2019 -0500
+++ b/tcc/meson.build Wed Jul 17 07:54:37 2019 -0500
@@ -11,7 +11,7 @@
]
if not compiler.has_header('libtcc.h')
- error('LibTcc header not found')
+ error('libtcc.h not found')
endif
TCC = compiler.find_library('tcc')