Re: Completely remove a GtkWidget from Memory



hi,


if ((ptr = malloc(size)) != NULL) {
       free(ptr);             if (ptr == NULL) {
               /* you have a really freaky problem ;-) */
       }
}

i am so sorry, maybe it is because i am a newbie, but why should ptr be NULL after "free (ptr)"? i thought free cannot change the the address ptr is pointing to, since it does not know the address of it...

please help me ;-(

bye
andreas

Attachment: pgpdg8DjR1v7r.pgp
Description: PGP signature



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