Use g_autoptr(GPtrArray) instead of gs_unref_ptrarray
This commit is contained in:
1 parent
196d983af9
commit
bb231fdf74
31 files changed
+60
-61
No files matched your search
@@ -57,7 +57,7 @@ ot_gfile_from_build_path (const char *first, ...)
|
||||
va_list args;
|
||||
const char *arg;
|
||||
g_autofree char *path = NULL;
|
||||
gs_unref_ptrarray GPtrArray *components = NULL;
|
||||
g_autoptr(GPtrArray) components = NULL;
|
||||
|
||||
va_start (args, first);
|
||||
|
||||
@@ -114,7 +114,7 @@ ot_gfile_get_child_build_path (GFile *parent,
|
||||
va_list args;
|
||||
const char *arg;
|
||||
g_autofree char *path = NULL;
|
||||
gs_unref_ptrarray GPtrArray *components = NULL;
|
||||
g_autoptr(GPtrArray) components = NULL;
|
||||
|
||||
va_start (args, first);
|
||||
|
||||
|
||||
@@ -91,7 +91,7 @@ ot_util_path_split_validate (const char *path,
|
||||
{
|
||||
gboolean ret = FALSE;
|
||||
int i;
|
||||
gs_unref_ptrarray GPtrArray *ret_components = NULL;
|
||||
g_autoptr(GPtrArray) ret_components = NULL;
|
||||
|
||||
if (strlen (path) > PATH_MAX)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user