I do not understand if we are freeing something then how can use it
again. ?
I haven’t looked at the existing code but you can always reassign the
pointer with a “new” statement. It wouldn’t have any of the previous
data in it but it would still be usable.>>> On 5/10/2007 at 7:54 PM, Pankaj <panky_13210 at yahoo.com> wrote:
You can’t or maybe I don’t understand what you mean. That said, this seems
like a simple algorithm in C where an element is removed from a linked list.
The puzzling point might be that ‘*pkt’ now contains a copy(!) of the
former ‘pkt1->pkt’, and the copy is independent from the original.
BTW: this is completely off-topic here and rather belongs into a C beginners
area. Further, check ACCU’s website for book reviews, it’s really hard to
learn C only from the net.
thanks for the explanation … Actually i was looking into the leaks that i am getting while playing .mp3 FFMPEG and just got confused. … thanks for clearing it.
Regards,
Pankaj> ----- Original Message -----
From: ckane@intellitree.com (Coleman Kane)
To: A list for developers using the SDL library. (includes SDL-announce)
Sent: Friday, 11 May, 2007 10:25:16 AM
Subject: Re: [SDL] Leaks in FFPLAY