Re: [AD] A bugfix for datedit.c |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On 2006-05-13, Andrei Ellman <ae-a-alleg@xxxxxxxxxx> wrote:
> Hi,
>
> I discovered a bug in the grabber, where if you were to update the
> datafile more than once per session, it would cause the grabber to
> crash. Attatched is a patch to fix this (the patch is against 4.2.0).
> The problem was in the function clone_properties() in datedit.c which
> would forget to set clone[i].dat to NULL (the previous value having come
> straight from a block of malloc'd memory) if prop[i].dat was NULL.
Committed, thanks.
Peter