[tracker/tracker-0.12] tracker-control: Do not call g_object_unref on NULL in error case
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.12] tracker-control: Do not call g_object_unref on NULL in error case
- Date: Thu, 20 Oct 2011 12:44:40 +0000 (UTC)
commit bfc01f3dee580353c6ad5216f42448cee82389dd
Author: JÃrg Billeter <j bitron ch>
Date: Mon Oct 17 10:14:36 2011 +0200
tracker-control: Do not call g_object_unref on NULL in error case
src/tracker-control/tracker-control-general.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/tracker-control/tracker-control-general.c b/src/tracker-control/tracker-control-general.c
index 35d1157..96f40ab 100644
--- a/src/tracker-control/tracker-control-general.c
+++ b/src/tracker-control/tracker-control-general.c
@@ -548,6 +548,7 @@ get_uid_for_pid (const gchar *pid_as_string,
uid = 0;
} else {
uid = g_file_info_get_attribute_uint32 (info, G_FILE_ATTRIBUTE_UNIX_UID);
+ g_object_unref (info);
}
if (filename) {
@@ -556,7 +557,6 @@ get_uid_for_pid (const gchar *pid_as_string,
g_free (fn);
}
- g_object_unref (info);
g_object_unref (f);
return uid;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]