On Tue, 28 Jun 2005 14:01:01 -0400 (EDT) [EMAIL PROTECTED] (Stuart Brorson) wrote:
> There is a struct called OutputType in PCB. It seems to define the > structure for a global variable called Output, which is used all over > the place. Often, I see this kind of construct in a function: > > void foo(bar) { > OutputType *out > . . . . > out = &Output; > out->window = gtk_widget_new(); > baz(out->fromble); > . . . . > > I have searched through the code to see where Output is created or > defined, but without any luck. It appears to be a global which is > built by many functions which add pieces to it, like above. The > problem is, I don't see where Output is originally defined, newed, or > malloced. > > I belive this has something to do with the many warnings I get when > running gpcb (gtkpcb?) on my Fedora 2 & Fedora 3 boxes. I also see > occasional strange pointers when running gdb on gpcb, as if I am > accessing unmalloced memory. However, valgrind doesn't complain at > all, so I am mystified. > > Any pointers on the definition and use of the variable Output would be > appreciated! It's declared as a global in data.c along with the other global structs such as Crosshair and Settings. Stuart, would it help to know if others running Fedora do or don't have this problem? Maybe they could chime in with a yes or no... Anybody? Or does anybody see it on another distribution? Bill