[nautilus/gnome-2-32: 258/283] Don't unref the DBus proxy if it's NULL
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/gnome-2-32: 258/283] Don't unref the DBus proxy if it's NULL
- Date: Thu, 12 Aug 2010 11:25:43 +0000 (UTC)
commit 13bfe3958472ae96e1c6c7b1bd597ae4bfbd1380
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Tue Aug 3 01:47:57 2010 +0200
Don't unref the DBus proxy if it's NULL
libnautilus-private/nautilus-mime-actions.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/libnautilus-private/nautilus-mime-actions.c b/libnautilus-private/nautilus-mime-actions.c
index 969bbd7..ba40851 100644
--- a/libnautilus-private/nautilus-mime-actions.c
+++ b/libnautilus-private/nautilus-mime-actions.c
@@ -1152,11 +1152,15 @@ activate_parameters_install_free (ActivateParametersInstall *parameters_install)
if (parameters_install->parent_window) {
g_object_remove_weak_pointer (G_OBJECT (parameters_install->parent_window), (gpointer *)¶meters_install->parent_window);
}
+
+ if (parameters_install->proxy != NULL) {
+ g_object_unref (parameters_install->proxy);
+ }
+
nautilus_file_unref (parameters_install->file);
nautilus_file_list_free (parameters_install->files);
g_free (parameters_install->activation_directory);
g_free (parameters_install->uri);
- g_object_unref (parameters_install->proxy);
g_free (parameters_install);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]