mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-12 20:00:09 +00:00
Fix memory leak. (#73370, Paolo Maggi).
Mon Mar 4 11:02:18 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkfilesel.c (gtk_file_selection_get_selections): Fix memory leak. (#73370, Paolo Maggi).
This commit is contained in:
parent
2a0aa82bf8
commit
0c54d4be12
@ -1,3 +1,8 @@
|
|||||||
|
Mon Mar 4 11:02:18 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkfilesel.c (gtk_file_selection_get_selections): Fix
|
||||||
|
memory leak. (#73370, Paolo Maggi).
|
||||||
|
|
||||||
Mon Mar 4 10:35:28 2002 Owen Taylor <otaylor@redhat.com>
|
Mon Mar 4 10:35:28 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtknotebook.c (gtk_notebook_set_current_page): Fix docs
|
* gtk/gtknotebook.c (gtk_notebook_set_current_page): Fix docs
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Mon Mar 4 11:02:18 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkfilesel.c (gtk_file_selection_get_selections): Fix
|
||||||
|
memory leak. (#73370, Paolo Maggi).
|
||||||
|
|
||||||
Mon Mar 4 10:35:28 2002 Owen Taylor <otaylor@redhat.com>
|
Mon Mar 4 10:35:28 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtknotebook.c (gtk_notebook_set_current_page): Fix docs
|
* gtk/gtknotebook.c (gtk_notebook_set_current_page): Fix docs
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Mon Mar 4 11:02:18 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkfilesel.c (gtk_file_selection_get_selections): Fix
|
||||||
|
memory leak. (#73370, Paolo Maggi).
|
||||||
|
|
||||||
Mon Mar 4 10:35:28 2002 Owen Taylor <otaylor@redhat.com>
|
Mon Mar 4 10:35:28 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtknotebook.c (gtk_notebook_set_current_page): Fix docs
|
* gtk/gtknotebook.c (gtk_notebook_set_current_page): Fix docs
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Mon Mar 4 11:02:18 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkfilesel.c (gtk_file_selection_get_selections): Fix
|
||||||
|
memory leak. (#73370, Paolo Maggi).
|
||||||
|
|
||||||
Mon Mar 4 10:35:28 2002 Owen Taylor <otaylor@redhat.com>
|
Mon Mar 4 10:35:28 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtknotebook.c (gtk_notebook_set_current_page): Fix docs
|
* gtk/gtknotebook.c (gtk_notebook_set_current_page): Fix docs
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Mon Mar 4 11:02:18 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkfilesel.c (gtk_file_selection_get_selections): Fix
|
||||||
|
memory leak. (#73370, Paolo Maggi).
|
||||||
|
|
||||||
Mon Mar 4 10:35:28 2002 Owen Taylor <otaylor@redhat.com>
|
Mon Mar 4 10:35:28 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtknotebook.c (gtk_notebook_set_current_page): Fix docs
|
* gtk/gtknotebook.c (gtk_notebook_set_current_page): Fix docs
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Mon Mar 4 11:02:18 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkfilesel.c (gtk_file_selection_get_selections): Fix
|
||||||
|
memory leak. (#73370, Paolo Maggi).
|
||||||
|
|
||||||
Mon Mar 4 10:35:28 2002 Owen Taylor <otaylor@redhat.com>
|
Mon Mar 4 10:35:28 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtknotebook.c (gtk_notebook_set_current_page): Fix docs
|
* gtk/gtknotebook.c (gtk_notebook_set_current_page): Fix docs
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Mon Mar 4 11:02:18 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkfilesel.c (gtk_file_selection_get_selections): Fix
|
||||||
|
memory leak. (#73370, Paolo Maggi).
|
||||||
|
|
||||||
Mon Mar 4 10:35:28 2002 Owen Taylor <otaylor@redhat.com>
|
Mon Mar 4 10:35:28 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtknotebook.c (gtk_notebook_set_current_page): Fix docs
|
* gtk/gtknotebook.c (gtk_notebook_set_current_page): Fix docs
|
||||||
|
@ -681,6 +681,7 @@ gtk_file_selection_init (GtkFileSelection *filesel)
|
|||||||
list_container = g_object_new (GTK_TYPE_HPANED,
|
list_container = g_object_new (GTK_TYPE_HPANED,
|
||||||
"visible", TRUE,
|
"visible", TRUE,
|
||||||
"parent", list_hbox,
|
"parent", list_hbox,
|
||||||
|
"border_width", 5,
|
||||||
NULL);
|
NULL);
|
||||||
else
|
else
|
||||||
list_container = list_hbox;
|
list_container = list_hbox;
|
||||||
@ -713,7 +714,7 @@ gtk_file_selection_init (GtkFileSelection *filesel)
|
|||||||
gtk_container_add (GTK_CONTAINER (scrolled_win), filesel->dir_list);
|
gtk_container_add (GTK_CONTAINER (scrolled_win), filesel->dir_list);
|
||||||
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled_win),
|
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled_win),
|
||||||
GTK_POLICY_AUTOMATIC, GTK_POLICY_ALWAYS);
|
GTK_POLICY_AUTOMATIC, GTK_POLICY_ALWAYS);
|
||||||
gtk_container_set_border_width (GTK_CONTAINER (scrolled_win), 5);
|
gtk_container_set_border_width (GTK_CONTAINER (scrolled_win), 0);
|
||||||
if (GTK_IS_PANED (list_container))
|
if (GTK_IS_PANED (list_container))
|
||||||
gtk_paned_pack1 (GTK_PANED (list_container), scrolled_win, TRUE, TRUE);
|
gtk_paned_pack1 (GTK_PANED (list_container), scrolled_win, TRUE, TRUE);
|
||||||
else
|
else
|
||||||
@ -750,7 +751,7 @@ gtk_file_selection_init (GtkFileSelection *filesel)
|
|||||||
gtk_container_add (GTK_CONTAINER (scrolled_win), filesel->file_list);
|
gtk_container_add (GTK_CONTAINER (scrolled_win), filesel->file_list);
|
||||||
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled_win),
|
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled_win),
|
||||||
GTK_POLICY_AUTOMATIC, GTK_POLICY_ALWAYS);
|
GTK_POLICY_AUTOMATIC, GTK_POLICY_ALWAYS);
|
||||||
gtk_container_set_border_width (GTK_CONTAINER (scrolled_win), 5);
|
gtk_container_set_border_width (GTK_CONTAINER (scrolled_win), 0);
|
||||||
gtk_container_add (GTK_CONTAINER (list_container), scrolled_win);
|
gtk_container_add (GTK_CONTAINER (list_container), scrolled_win);
|
||||||
gtk_widget_show (filesel->file_list);
|
gtk_widget_show (filesel->file_list);
|
||||||
gtk_widget_show (scrolled_win);
|
gtk_widget_show (scrolled_win);
|
||||||
@ -2372,6 +2373,8 @@ gtk_file_selection_get_selections (GtkFileSelection *filesel)
|
|||||||
else
|
else
|
||||||
g_free (current);
|
g_free (current);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
g_free (dirname);
|
||||||
}
|
}
|
||||||
|
|
||||||
selections[count] = NULL;
|
selections[count] = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user