Skip to content

Commit

Permalink
g_strfreev does not seem to work correctly in this context.
Browse files Browse the repository at this point in the history
More investigation needed.
Also fix a comment

Signed-off-by: Philippe De Swert <philippe.deswert@jollamobile.com>
  • Loading branch information
philippedeswert committed Aug 2, 2013
1 parent 7038b16 commit 5a3bcd7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/usb_moded-config.c
Expand Up @@ -203,7 +203,7 @@ static int get_conf_int(const gchar *entry, const gchar *key)
}
keys++;
}
g_strfreev(keys);
//g_strfreev(keys);
g_key_file_free(settingsfile);
return(ret);

Expand Down Expand Up @@ -237,7 +237,7 @@ static const char * get_conf_string(const gchar *entry, const gchar *key)
}
keys++;
}
g_strfreev(keys);
//g_strfreev(keys);
g_key_file_free(settingsfile);
return(g_strdup(tmp_char));

Expand Down Expand Up @@ -431,7 +431,7 @@ int conf_file_merge(void)
*/
if(fileinfo.st_mtime == dir.st_mtime)
{
/* if a conffile was created, the st_mtime would have been updated so this check will miss infomaxitrion that might be there already,
/* if a conffile was created, the st_mtime would have been updated so this check will miss information that might be there already,
like after a config file removal for example. So we run a merge anyway if we needed to create the conf file */
if(!conffile_created)
return 0;
Expand Down Expand Up @@ -526,7 +526,7 @@ int check_android_section(void)
return 0;
}

g_strfreev(keys);
//g_strfreev(keys);
g_key_file_free(settingsfile);
return 1;
}
Expand Down

0 comments on commit 5a3bcd7

Please sign in to comment.