projects
/
profile
/
ivi
/
org.tizen.video-player.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76691f0
)
Remove unused realloc
author
Behdad Esfahbod
<behdad@behdad.org>
Thu, 6 Jan 2011 19:44:14 +0000
(14:44 -0500)
committer
Behdad Esfahbod
<behdad@behdad.org>
Thu, 6 Jan 2011 19:44:14 +0000
(14:44 -0500)
We always allocate and grow str and pos together.
src/hb-buffer.cc
patch
|
blob
|
history
diff --git
a/src/hb-buffer.cc
b/src/hb-buffer.cc
index
03e8e1a
..
f50d87b
100644
(file)
--- a/
src/hb-buffer.cc
+++ b/
src/hb-buffer.cc
@@
-264,12
+264,6
@@
hb_buffer_clear_positions (hb_buffer_t *buffer)
buffer->have_output = FALSE;
buffer->have_positions = TRUE;
- if (unlikely (!buffer->pos))
- {
- buffer->pos = (hb_glyph_position_t *) calloc (buffer->allocated, sizeof (buffer->pos[0]));
- return;
- }
-
memset (buffer->pos, 0, sizeof (buffer->pos[0]) * buffer->len);
}