gtk_label_set_text leaking?

I noticed one of my gtk applications seems to be
leaking memory on my fc6 box that I updated recently.
I think I've tracked it down to a leak in gtk_label_set_text.
The following simple example leaks on one of my computers
(an fc6 box with "yum update" run today... uses gtk2-2.10.4-8.fc6).
Am I doing something wrong or is there a gtk bug?

#include <gtk/gtk.h>
int main(int argc, char *argv[])
gtk_init(&argc, &argv);

GtkWidget *window;
window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
GtkWidget *vbox;
vbox = gtk_vbox_new(FALSE, 0);
gtk_container_add (GTK_CONTAINER(window), vbox);
GtkWidget *mylabel = gtk_label_new("a");
gtk_box_pack_start(GTK_BOX(vbox), mylabel, FALSE, FALSE, 0);
while (1) {
  gtk_label_set_text((GtkLabel *)mylabel, "f");



Find sales, coupons, and free shipping, all in one place!  MSN Shopping Sales & Deals,ptnrid=176,ptnrdata=200639

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