Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tg
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
tg
Commits
a7738508
Commit
a7738508
authored
Oct 12, 2015
by
V V
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated tgl
parent
865c0a93
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
11 deletions
+14
-11
interface.c
interface.c
+10
-9
main.c
main.c
+3
-1
tgl
tgl
+1
-1
No files found.
interface.c
View file @
a7738508
...
...
@@ -1567,21 +1567,22 @@ extern struct event *term_ev;
void
do_clear
(
struct
command
*
command
,
int
arg_num
,
struct
arg
args
[],
struct
in_ev
*
ev
)
{
logprintf
(
"Do_clear
\n
"
);
free
(
default_username
);
free
(
config_filename
);
tfree_str
(
config_filename
);
//free (prefix);
free
(
auth_file_name
);
free
(
state_file_name
);
free
(
secret_chat_file_name
);
free
(
downloads_directory
);
free
(
config_directory
);
free
(
binlog_file_name
);
free
(
lua_file
);
free
(
python_file
);
tfree_str
(
auth_file_name
);
tfree_str
(
state_file_name
);
tfree_str
(
secret_chat_file_name
);
tfree_str
(
downloads_directory
);
//tfree_str
(config_directory);
tfree_str
(
binlog_file_name
);
tfree_str
(
lua_file
);
tfree_str
(
python_file
);
clear_history
();
event_free
(
term_ev
);
struct
event_base
*
ev_base
=
TLS
->
ev_base
;
tgl_free_all
(
TLS
);
event_base_free
(
ev_base
);
logprintf
(
"Bytes left allocated: %lld
\n
"
,
tgl_get_allocated_bytes
());
do_halt
(
0
);
}
...
...
main.c
View file @
a7738508
...
...
@@ -263,7 +263,7 @@ void running_for_first_time (void) {
// printf ("I: config file=[%s]\n", config_filename);
int
config_file_fd
;
char
*
config_directory
=
get_config_directory
();
//
char *config_directory = get_config_directory ();
//char *downloads_directory = get_downloads_directory ();
if
(
!
mkdir
(
config_directory
,
CONFIG_DIRECTORY_MODE
))
{
...
...
@@ -404,6 +404,8 @@ void parse_config (void) {
printf
(
"[%s] created
\n
"
,
downloads_directory
);
}
}
tfree_str
(
config_directory
);
config_directory
=
NULL
;
config_destroy
(
&
conf
);
}
#else
...
...
tgl
@
790bde40
Subproject commit
6467a94ee3d9f69b6f23d66221f7bd0d58df7ac
2
Subproject commit
790bde40a6f5b7db0ee842a3352b29bc7eff808
2
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment