"clayton rollins" <[EMAIL PROTECTED]> wrote:

> #6  0x2876b9e9 in g_free (mem=0x8948da0) at gmem.c:186
> No locals.
> #7  0x80c1cdf in uploads_gui_update_display (now=1056344143) at 
> uploads_gui2.c:441
>         data = (upload_row_data_t *) 0x8948da0

The only explanation I can think of is that somehow the same row
gets removed twice from the model i.e., removing the row failed
before. Alternatively, data might not be nullified but if my eyes
ain't broken data is always set to NULL, isn't it?

> (I'll recompile libc with debugging, if you think it's necessary.)

That wouldn't help here.

Please, try the attached patch. data->status might not be initialized
at the beginning although I don't think this fixes the bug.

Thanks,
-- 
Christian
Index: uploads_gui2.c
===================================================================
RCS file: /cvsroot/gtk-gnutella/gtk-gnutella-current/src/uploads_gui2.c,v
retrieving revision 1.20
diff -u -r1.20 uploads_gui2.c
--- src/uploads_gui2.c  12 May 2003 12:36:06 -0000      1.20
+++ src/uploads_gui2.c  23 Jun 2003 02:06:13 -0000
@@ -239,6 +241,7 @@
        gchar *titles[6];
        GtkTreeIter iter;
     upload_row_data_t *data;
+       gnet_upload_status_t status;
 
        memset(titles, 0, sizeof(titles));
 
@@ -276,6 +279,9 @@
     data->range_end   = u->range_end;
     data->start_date  = u->start_date;
     data->valid       = TRUE;
+
+       upload_get_status(u->upload_handle, &status);
+    data->status = status.status;
 
     gtk_list_store_append(store_uploads, &iter);
     gtk_list_store_set(store_uploads, &iter,

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to