Re: Memory leak within gtkdatabox
- From: Roland Bock <box2OO6 eudoxos de>
- To: gtkdatabox-list gnome org
- Subject: Re: Memory leak within gtkdatabox
- Date: Mon, 12 Mar 2007 07:56:25 +0100
Hi Jim,
thanks for the hint! I will try to create a new version, soon.
Regards,
Roland
Jim George wrote:
> I have found a potential memory leak in gtkdatabox. I am using the
> gtkdatabox-devel package from Fedora Core 6, version 0.7.0.0-4.
> Valgrind reported leaking memory on a call to
> gtk_databox_marker_set_label, on inspecting the source code for
> gtkdatabox, I found this:
>
> gtkdatabox_marker.c:567
> marker->priv->marker_info[index].text = g_strdup (text);
>
> If one calls gtk_databox_marker_set_label several times, the old
> string in marker->priv->marker_info[index].text is never free'd, while
> a new one is allocated by g_strdup. Over time, the application fails
> due to too much memory being used.
>
> -Jim
> _______________________________________________
> gtkdatabox-list mailing list
> gtkdatabox-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkdatabox-list
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]