gtk+ r21573 - in branches/gtk-2-14: . gtk
- From: chpe svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk+ r21573 - in branches/gtk-2-14: . gtk
- Date: Thu, 2 Oct 2008 19:55:26 +0000 (UTC)
Author: chpe
Date: Thu Oct 2 19:55:26 2008
New Revision: 21573
URL: http://svn.gnome.org/viewvc/gtk+?rev=21573&view=rev
Log:
Bug 554690 â mem leak in filechooser
Modified:
branches/gtk-2-14/ChangeLog
branches/gtk-2-14/gtk/gtkfilechooserdefault.c
Modified: branches/gtk-2-14/gtk/gtkfilechooserdefault.c
==============================================================================
--- branches/gtk-2-14/gtk/gtkfilechooserdefault.c (original)
+++ branches/gtk-2-14/gtk/gtkfilechooserdefault.c Thu Oct 2 19:55:26 2008
@@ -2074,10 +2074,17 @@
if (_gtk_file_system_volume_is_mounted (volume))
{
GFile *base_file;
+ gboolean base_is_native = TRUE;
base_file = _gtk_file_system_volume_get_root (volume);
- if (base_file != NULL && !g_file_is_native (base_file))
- continue;
+ if (base_file != NULL)
+ {
+ base_is_native = g_file_is_native (base_file);
+ g_object_unref (base_file);
+ }
+
+ if (!base_is_native)
+ continue;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]