mirror of
https://github.com/holub/mame
synced 2025-05-22 21:58:57 +03:00
02479: Various: Memory leak
This commit is contained in:
parent
0329403bae
commit
ca7e069f29
@ -700,7 +700,7 @@ rgb_t *compute_res_net_all(const UINT8 *prom, const res_net_decode_info *rdi, co
|
||||
int i,j,k;
|
||||
rgb_t *rgb;
|
||||
|
||||
rgb = malloc_or_die((rdi->end - rdi->start + 1)*sizeof(rgb_t));
|
||||
rgb = auto_malloc((rdi->end - rdi->start + 1)*sizeof(rgb_t));
|
||||
for (i=rdi->start; i<=rdi->end; i++)
|
||||
{
|
||||
UINT8 t[3] = {0,0,0};
|
||||
|
Loading…
Reference in New Issue
Block a user