[Xfce4-commits] r29783 - in thunar/branches/migration-to-gio: . thunar
Jannis Pohlmann
jannis at xfce.org
Sun Apr 12 20:07:32 CEST 2009
Author: jannis
Date: 2009-04-12 18:07:32 +0000 (Sun, 12 Apr 2009)
New Revision: 29783
Modified:
thunar/branches/migration-to-gio/ChangeLog
thunar/branches/migration-to-gio/thunar/thunar-chooser-button.c
Log:
* thunar/thunar-chooser-button.c: Don't leak GAppInfos in
thunar_chooser_button_pressed().
Modified: thunar/branches/migration-to-gio/ChangeLog
===================================================================
--- thunar/branches/migration-to-gio/ChangeLog 2009-04-12 16:37:06 UTC (rev 29782)
+++ thunar/branches/migration-to-gio/ChangeLog 2009-04-12 18:07:32 UTC (rev 29783)
@@ -1,5 +1,10 @@
2009-04-12 Jannis Pohlmann <jannis at xfce.org>
+ * thunar/thunar-chooser-button.c: Don't leak GAppInfos in
+ thunar_chooser_button_pressed().
+
+2009-04-12 Jannis Pohlmann <jannis at xfce.org>
+
* thunar/thunar-chooser-button.c: Migrate ThunarChooserButton from
ThunarVFS to GIO, using GAppInfo instead if ThunarVfsMime* classes.
Modified: thunar/branches/migration-to-gio/thunar/thunar-chooser-button.c
===================================================================
--- thunar/branches/migration-to-gio/thunar/thunar-chooser-button.c 2009-04-12 16:37:06 UTC (rev 29782)
+++ thunar/branches/migration-to-gio/thunar/thunar-chooser-button.c 2009-04-12 18:07:32 UTC (rev 29783)
@@ -330,7 +330,7 @@
gtk_label_set_text (GTK_LABEL (chooser_button->label), g_app_info_get_name (app_info));
/* cleanup */
- g_object_unref (G_OBJECT (app_info));
+ g_object_unref (app_info);
}
else
{
@@ -421,6 +421,7 @@
{
/* no default application, just popup the application chooser */
thunar_chooser_button_activate_other (chooser_button);
+ g_object_unref (default_app_info);
return;
}
More information about the Xfce4-commits
mailing list