A memory leak problem in GtkTextView
- From: "ustc.chip" <ustc chip qq com>
- To: "gtk-app-devel-list" <gtk-app-devel-list gnome org>
- Subject: A memory leak problem in GtkTextView
- Date: Fri, 29 Aug 2008 11:17:30 +0800
Hi,
I'm facing a problem in the use of GtkTextView. When I insert a image into the GtkTextView, there is an
explicit memory leak problem.
Some source code is as follow:
//////////
image=gtk_image_new_from_file(path);
gtk_widget_show(image);
anchor = gtk_text_buffer_create_child_anchor (buffer, &iter);
gtk_text_view_add_child_at_anchor (GTK_TEXT_VIEW(textview), image, anchor);
//////////////
Can someone tell me why? Thanks in advance.
Chip
ustc.chip
2008-08-29
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]