Memory leak in gtkcellrendertext.c ?



I sometimes run my app through memprof, after updating from gtk 2.2 to
gtk-2.3.6 it showed something I can't remember seen before(though
I could be wrong..)
In gtk/gtkcellrendertext.c , line 982 , shouldn't font_desc be freed ?


case PROP_FONT:
      {
        PangoFontDescription *font_desc = NULL;
        const gchar *name;
                                                                                                                             
        name = g_value_get_string (value);
                                                                                                                             
        if (name)
          font_desc = pango_font_description_from_string (name);
	  ^^^^
	shouldn't thisone be freed somewhere
?                                                                                                                             

        set_font_description (celltext, font_desc);
                                                                                                                             
        if (celltext->fixed_height_rows != -1)
          celltext->calc_fixed_height = TRUE;
      }
      break;

-- 
Nils O. Selåsdal <noselasd frisurf no>




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