diff options
| author | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2014-04-07 08:51:20 +0200 | 
|---|---|---|
| committer | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2014-04-07 08:51:20 +0200 | 
| commit | 6ea92130f1c791007b417e41b39e21f07d644a3c (patch) | |
| tree | 32d1fd7ddc31410bc47836cc0e56379cdb95b353 /src/uca-plugin-manager.c | |
| parent | c302e1cd9986977c20824b379ae284bd239390cf (diff) | |
| download | uca-6ea92130f1c791007b417e41b39e21f07d644a3c.tar.gz uca-6ea92130f1c791007b417e41b39e21f07d644a3c.tar.bz2 uca-6ea92130f1c791007b417e41b39e21f07d644a3c.tar.xz uca-6ea92130f1c791007b417e41b39e21f07d644a3c.zip | |
Use g_list_free_full instead of list_free_full
Diffstat (limited to 'src/uca-plugin-manager.c')
| -rw-r--r-- | src/uca-plugin-manager.c | 11 | 
1 files changed, 2 insertions, 9 deletions
| diff --git a/src/uca-plugin-manager.c b/src/uca-plugin-manager.c index eb391dd..97d6f8e 100644 --- a/src/uca-plugin-manager.c +++ b/src/uca-plugin-manager.c @@ -156,13 +156,6 @@ transform_camera_module_path_to_name (gchar *path, GList **result)      g_regex_unref (pattern);  } -static void -list_free_full (GList *list) -{ -    g_list_foreach (list, (GFunc) g_free, NULL); -    g_list_free (list); -} -  /**   * uca_plugin_manager_get_available_cameras:   * @manager: A #UcaPluginManager @@ -185,7 +178,7 @@ uca_plugin_manager_get_available_cameras (UcaPluginManager *manager)      camera_paths = scan_search_paths (priv->search_paths);      g_list_foreach (camera_paths, (GFunc) transform_camera_module_path_to_name, &camera_names); -    list_free_full (camera_paths); +    g_list_free_full (camera_paths, g_free);      return camera_names;  } @@ -211,7 +204,7 @@ find_camera_module_path (GList *search_paths, const gchar *name)          g_free (basename);      } -    list_free_full (paths); +    g_list_free_full (paths, g_free);      return result;  } | 
