diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-01-31 23:22:19 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-01-31 23:22:19 +0000 |
commit | 4d22f234e95f42bb8f405857e338d3be92057341 (patch) | |
tree | 4d9664f4b061934c9df7eb2dbdcb125406bfbcc0 | |
parent | 97bf424299bfc2cdb2893aa7d24dc7aa0890ac78 (diff) | |
download | gnunet-gtk-4d22f234e95f42bb8f405857e338d3be92057341.tar.gz gnunet-gtk-4d22f234e95f42bb8f405857e338d3be92057341.zip |
-eliminating ugly SearchDownloadContext and memory leak and possible free of pointer on stack
-rw-r--r-- | src/fs/gnunet-fs-gtk-event_handler.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fs/gnunet-fs-gtk-event_handler.c b/src/fs/gnunet-fs-gtk-event_handler.c index eb29b708..81b61725 100644 --- a/src/fs/gnunet-fs-gtk-event_handler.c +++ b/src/fs/gnunet-fs-gtk-event_handler.c | |||
@@ -1636,6 +1636,7 @@ setup_search (struct GNUNET_FS_SearchContext *sc, | |||
1636 | tab->label = | 1636 | tab->label = |
1637 | GTK_LABEL (gtk_builder_get_object | 1637 | GTK_LABEL (gtk_builder_get_object |
1638 | (tab->builder, "_search_result_label_window_label")); | 1638 | (tab->builder, "_search_result_label_window_label")); |
1639 | |||
1639 | /* FIXME: connect these signals using glade!!! */ | 1640 | /* FIXME: connect these signals using glade!!! */ |
1640 | tab->close_button = | 1641 | tab->close_button = |
1641 | GTK_WIDGET (gtk_builder_get_object | 1642 | GTK_WIDGET (gtk_builder_get_object |
@@ -1660,7 +1661,7 @@ setup_search (struct GNUNET_FS_SearchContext *sc, | |||
1660 | /* patch text */ | 1661 | /* patch text */ |
1661 | update_search_label (tab); | 1662 | update_search_label (tab); |
1662 | 1663 | ||
1663 | /* add signal handlers */ | 1664 | /* add signal handlers; FIXME: again, connect these with glade... */ |
1664 | tv = GTK_TREE_VIEW (gtk_builder_get_object | 1665 | tv = GTK_TREE_VIEW (gtk_builder_get_object |
1665 | (tab->builder, "_search_result_frame")); | 1666 | (tab->builder, "_search_result_frame")); |
1666 | g_signal_connect_data (G_OBJECT (tv), "row-activated", | 1667 | g_signal_connect_data (G_OBJECT (tv), "row-activated", |