Use g_unlink() instead of unlink().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2016 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
7cc8825ef1
commit
cd77937561
@ -14,6 +14,7 @@
|
||||
created.
|
||||
Fix problems when configuration directory path contains special
|
||||
characters.
|
||||
* tagmanager/tm_workspace.c: Use g_unlink() instead of unlink().
|
||||
|
||||
|
||||
2007-11-02 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
|
||||
|
||||
@ -79,7 +79,7 @@ void tm_workspace_free(gpointer workspace)
|
||||
tm_tag_free(theWorkspace->global_tags->pdata[i]);
|
||||
g_ptr_array_free(theWorkspace->global_tags, TRUE);
|
||||
}
|
||||
unlink(theWorkspace->work_object.file_name);
|
||||
g_unlink(theWorkspace->work_object.file_name);
|
||||
tm_work_object_destroy(TM_WORK_OBJECT(theWorkspace));
|
||||
g_free(theWorkspace);
|
||||
theWorkspace = NULL;
|
||||
@ -358,7 +358,7 @@ gboolean tm_workspace_create_global_tags(const char *config_dir, const char *pre
|
||||
#endif
|
||||
system(command);
|
||||
g_free(command);
|
||||
unlink(temp_file);
|
||||
g_unlink(temp_file);
|
||||
g_free(temp_file);
|
||||
}
|
||||
else
|
||||
@ -371,10 +371,10 @@ gboolean tm_workspace_create_global_tags(const char *config_dir, const char *pre
|
||||
source_file = tm_source_file_new(temp_file2, TRUE, tm_source_file_get_lang_name(lang));
|
||||
if (NULL == source_file)
|
||||
{
|
||||
unlink(temp_file2);
|
||||
g_unlink(temp_file2);
|
||||
return FALSE;
|
||||
}
|
||||
unlink(temp_file2);
|
||||
g_unlink(temp_file2);
|
||||
g_free(temp_file2);
|
||||
if ((NULL == source_file->tags_array) || (0 == source_file->tags_array->len))
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user