[gnome-software/wip/installed_updates: 4/10] GsShell: Remove unneeded g_clear_object calls
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/installed_updates: 4/10] GsShell: Remove unneeded g_clear_object calls
- Date: Tue, 6 May 2014 13:22:05 +0000 (UTC)
commit 2b873e94dbf60ce445555c494f7d7f395484427e
Author: Kalev Lember <kalevlember gmail com>
Date: Mon May 5 13:18:54 2014 +0200
GsShell: Remove unneeded g_clear_object calls
We just created and 0-initialized the BackEntry; no need to clear the members
again.
src/gs-shell.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/src/gs-shell.c b/src/gs-shell.c
index 54f72ca..5ab96b8 100644
--- a/src/gs-shell.c
+++ b/src/gs-shell.c
@@ -237,12 +237,10 @@ save_back_entry (GsShell *shell)
entry->mode = priv->mode;
if (priv->mode == GS_SHELL_MODE_CATEGORY) {
- g_clear_object (&entry->category);
entry->category = gs_shell_category_get_category (priv->shell_category);
g_object_ref (entry->category);
}
else if (priv->mode == GS_SHELL_MODE_DETAILS) {
- g_clear_object (&entry->app);
entry->app = gs_shell_details_get_app (priv->shell_details);
g_object_ref (entry->app);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]