Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
8b146312
Commit
8b146312
authored
Dec 22, 2008
by
Andreas Schwab
Browse files
* buffer.c (init_buffer): Use realloc instead of xrealloc.
* gtkutil.c (free_widget_value): Use xfree instead of free.
parent
56f2de10
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
2 deletions
+9
-2
src/ChangeLog
src/ChangeLog
+5
-0
src/buffer.c
src/buffer.c
+3
-1
src/gtkutil.c
src/gtkutil.c
+1
-1
No files found.
src/ChangeLog
View file @
8b146312
2008-12-22 Andreas Schwab <schwab@suse.de>
* buffer.c (init_buffer): Use realloc instead of xrealloc.
* gtkutil.c (free_widget_value): Use xfree instead of free.
2008-12-22 Martin Rudalics <rudalics@gmx.at>
* frame.c (delete_frame): New function derived from
...
...
src/buffer.c
View file @
8b146312
...
...
@@ -5343,7 +5343,9 @@ init_buffer ()
if (!(IS_DIRECTORY_SEP (pwd[len - 1])))
{
/* Grow buffer to add directory separator and '\0'. */
pwd = (char *) xrealloc (pwd, len + 2);
pwd = (char *) realloc (pwd, len + 2);
if (!pwd)
fatal ("`get_current_dir_name' failed: %s\n", strerror (errno));
pwd[len] = DIRECTORY_SEP;
pwd[len + 1] = '\0';
}
...
...
src/gtkutil.c
View file @
8b146312
...
...
@@ -224,7 +224,7 @@ free_widget_value (wv)
{
/* When the number of already allocated cells is too big,
We free it. */
free
(
wv
);
x
free
(
wv
);
malloc_cpt
--
;
}
else
...
...
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