diff options
author | Gary Wong <gtw@gnu.org> | 2009-08-29 21:02:14 -0600 |
---|---|---|
committer | Gary Wong <gtw@gnu.org> | 2009-08-29 21:02:14 -0600 |
commit | f62ba0d2b29be17191f17c8847036febb71aa79e (patch) | |
tree | 6a5013baf22619d43aab47b86564dfe5b19b2bcc | |
parent | dd0c6b4a8321be8f50d06b6a2c67abb63f349ba2 (diff) |
Use xmalloc() instead of malloc().
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | frame.c | 8 |
2 files changed, 8 insertions, 4 deletions
@@ -1,5 +1,9 @@ 2009-08-29 Gary Wong <gtw@gnu.org> + * frame.c (build_edges): Use xmalloc() instead of malloc(). + +2009-08-29 Gary Wong <gtw@gnu.org> + * managed.c (managed_property_change): Use _NET_WM_NAME in preference to WM_NAME. (async_get_property): New function. @@ -79,10 +79,10 @@ static void build_edges( int screen ) { assert( !l_edges ); assert( !r_edges ); - t_edges = malloc( ( windows.used + 1 ) * sizeof *t_edges ); - b_edges = malloc( ( windows.used + 1 ) * sizeof *b_edges ); - l_edges = malloc( ( windows.used + 1 ) * sizeof *l_edges ); - r_edges = malloc( ( windows.used + 1 ) * sizeof *r_edges ); + t_edges = xmalloc( ( windows.used + 1 ) * sizeof *t_edges ); + b_edges = xmalloc( ( windows.used + 1 ) * sizeof *b_edges ); + l_edges = xmalloc( ( windows.used + 1 ) * sizeof *l_edges ); + r_edges = xmalloc( ( windows.used + 1 ) * sizeof *r_edges ); t_edges[ 0 ].x_min = b_edges[ 0 ].x_min = 0; t_edges[ 0 ].x_max = b_edges[ 0 ].x_max = |