[easytag] Fix memory leak in CDDB search dialog
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [easytag] Fix memory leak in CDDB search dialog
- Date: Wed, 22 May 2013 21:39:56 +0000 (UTC)
commit 2b3043e923a41b5684faedafe5c7ec1652e5dfd2
Author: David King <amigadave amigadave com>
Date: Wed May 22 20:09:36 2013 +0100
Fix memory leak in CDDB search dialog
src/cddb.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/cddb.c b/src/cddb.c
index b1601cd..ee0d859 100644
--- a/src/cddb.c
+++ b/src/cddb.c
@@ -228,6 +228,7 @@ void Open_Cddb_Window (void)
gchar *CddbTrackList_Titles[] = { "#", N_("Track Name"), N_("Duration")};
GtkCellRenderer* renderer;
GtkTreeViewColumn* column;
+ GtkTreePath *path;
GtkAllocation allocation = { 0,0,0,0 };
if (CddbWindow != NULL)
@@ -640,7 +641,10 @@ void Open_Cddb_Window (void)
gtk_container_add(GTK_CONTAINER(ScrollWindow), CddbAlbumListView);
- gtk_tree_view_set_cursor(GTK_TREE_VIEW(CddbAlbumListView), gtk_tree_path_new_first(), NULL, FALSE);
+ path = gtk_tree_path_new_first ();
+ gtk_tree_view_set_cursor (GTK_TREE_VIEW (CddbAlbumListView), path, NULL,
+ FALSE);
+ gtk_tree_path_free (path);
g_signal_connect(G_OBJECT(gtk_tree_view_get_selection(GTK_TREE_VIEW(CddbAlbumListView))),
"changed", G_CALLBACK(Cddb_Show_Album_Info), NULL);
g_signal_connect(G_OBJECT(gtk_tree_view_get_selection(GTK_TREE_VIEW(CddbAlbumListView))),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]