projects
/
platform
/
upstream
/
glib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Mark the functions g_basename and g_dirname deprecated. They will issue an
[platform/upstream/glib.git]
/
gmodule
/
libgplugin_a.c
diff --git
a/gmodule/libgplugin_a.c
b/gmodule/libgplugin_a.c
index
2a4ced7
..
0920ebb
100644
(file)
--- a/
gmodule/libgplugin_a.c
+++ b/
gmodule/libgplugin_a.c
@@
-56,11
+56,12
@@
gplugin_a_module_func (GModule *module)
{
void (*f) (void) = NULL;
gchar *string;
{
void (*f) (void) = NULL;
gchar *string;
+ gchar *basename = g_path_get_basename (g_module_name (module));
string = "gplugin_say_boo_func";
g_print ("GPluginA: retrive symbol `%s' from \"%s\"\n",
string = "gplugin_say_boo_func";
g_print ("GPluginA: retrive symbol `%s' from \"%s\"\n",
- string,
-
g_basename (g_module_name (module))
);
+ string,
basename);
+
g_free (basename
);
if (!g_module_symbol (module, string, (gpointer) &f))
{
g_print ("error: %s\n", g_module_error ());
if (!g_module_symbol (module, string, (gpointer) &f))
{
g_print ("error: %s\n", g_module_error ());