Re: [gtk-list] Re: ...yaq... (yet another question) :-)
- From: Joe Pfeiffer <pfeiffer cs nmsu edu>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Re: ...yaq... (yet another question) :-)
- Date: Thu, 9 Jul 1998 13:51:02 -0600
>
> void destroy_filter_entry(GtkWidget *widget, gpointer *data){
> Filter* filter = (Filter*) data;
> delete filter;
> }
>
I'll take a guess that somehow, somewhere the object that contains the
original pointer to data is being deleted, and that its destructor is
deleting the original pointer (if you're using the default destructor,
that will be the case). As a result, it's being double-freed. Gdb
doesn't show anything interesting?
--
Joseph J. Pfeiffer, Jr., Ph.D. Phone -- (505) 646-1605
Department of Computer Science FAX -- (505) 646-1002
New Mexico State University http://www.cs.nmsu.edu/~pfeiffer
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]