gplugin/gplugin

bb4e164f791a
flow: Merged 'scanbuild-fixes' to ('develop').
--- a/gplugin/gplugin-manager.c Mon Oct 23 20:45:22 2017 -0500
+++ b/gplugin/gplugin-manager.c Tue Jan 02 21:25:50 2018 -0600
@@ -298,9 +298,7 @@
for(l = los; l; l = l->next) {
GPluginLoader *lo = GPLUGIN_LOADER(l->data);
- if(!GPLUGIN_IS_LOADER(lo))
- continue;
-
+ /* check if this is not the loader we're looking for */
if(G_OBJECT_TYPE(lo) != type)
continue;
--- a/python/gplugin-python-loader.c Mon Oct 23 20:45:22 2017 -0500
+++ b/python/gplugin-python-loader.c Tue Jan 02 21:25:50 2018 -0600
@@ -325,6 +325,9 @@
len = mbstowcs(argv[0], program, len + 1);
if(len == (size_t)-1) {
g_warning("Could not convert program name to wchar_t string.");
+
+ g_free(argv[0]);
+
return FALSE;
}