diff options
author | Garrett Regier <garrett.regier@riftio.com> | 2014-11-08 07:49:56 -0800 |
---|---|---|
committer | Garrett Regier <garrett.regier@riftio.com> | 2014-11-18 10:25:42 -0800 |
commit | b3e33c431e73c9d594b90f75d6f62d551d31445c (patch) | |
tree | e4d36ef03e245bd2b607add462474716586143e7 /libpeas/peas-plugin-info.c | |
parent | 68a51dbc42e98d823ce57c4e85a129ed0e180378 (diff) | |
download | libpeas-b3e33c431e73c9d594b90f75d6f62d551d31445c.tar.gz |
Make the C plugin loader thread-safe
https://bugzilla.gnome.org/show_bug.cgi?id=739619
Diffstat (limited to 'libpeas/peas-plugin-info.c')
-rw-r--r-- | libpeas/peas-plugin-info.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libpeas/peas-plugin-info.c b/libpeas/peas-plugin-info.c index 8124540..b580916 100644 --- a/libpeas/peas-plugin-info.c +++ b/libpeas/peas-plugin-info.c @@ -80,6 +80,7 @@ _peas_plugin_info_unref (PeasPluginInfo *info) if (!g_atomic_int_dec_and_test (&info->refcount)) return; + g_free (info->filename); g_free (info->module_dir); g_free (info->data_dir); g_free (info->module_name); @@ -269,6 +270,7 @@ _peas_plugin_info_new (const gchar *filename, g_key_file_free (plugin_file); + info->filename = g_strdup (filename); info->module_dir = g_strdup (module_dir); info->data_dir = g_build_filename (data_dir, info->module_name, NULL); |