Re: [Tracker] patch for sigabrt in trackerd



this causes another sigabrt for me, because the memory isn't being
cleared first and it's trying to free some random block of memory.
(btw, should i be attaching patches or putting them inline? thanks)

samuel

On 9/13/06, Jamie McCracken <jamiemcc blueyonder co uk> wrote:
Samuel Cormier-Iijima wrote:
> found a problem when trying to get metadata for nonexistant metadata
> types, the problem was trying to free g_slice_new-allocated memory
> with g_free. patch attached :-)
>

Thanks

good spot but it would be better to call tracker_db_free_field_def
instead which calls g_slice_free as well as freeing the def->id field if
allocated

(no need to send updated patch)


--
Mr Jamie McCracken
http://jamiemcc.livejournal.com/

Attachment: clear-first.patch
Description: Text Data



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]