[gnome-software] trivial: Fix invalid use of autoptr with install/remove auth
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Fix invalid use of autoptr with install/remove auth
- Date: Mon, 4 Jul 2016 01:32:31 +0000 (UTC)
commit 348f8f402baadf7ca48fcd202ef55794d82fbb4f
Author: Robert Ancell <robert ancell canonical com>
Date: Mon Jul 4 13:26:04 2016 +1200
trivial: Fix invalid use of autoptr with install/remove auth
src/gs-page.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/gs-page.c b/src/gs-page.c
index e7d0ebc..7cd7de4 100644
--- a/src/gs-page.c
+++ b/src/gs-page.c
@@ -141,13 +141,12 @@ gs_page_app_installed_cb (GObject *source,
&error_local);
if (dialog == NULL) {
g_warning ("%s", error_local->message);
- gs_page_helper_free (helper);
return;
}
gs_shell_modal_dialog_present (priv->shell, GTK_DIALOG (dialog));
g_signal_connect (dialog, "response",
G_CALLBACK (gs_page_install_authenticate_cb),
- helper);
+ g_steal_pointer (&helper));
return;
}
@@ -212,13 +211,12 @@ gs_page_app_removed_cb (GObject *source,
&error_local);
if (dialog == NULL) {
g_warning ("%s", error_local->message);
- gs_page_helper_free (helper);
return;
}
gs_shell_modal_dialog_present (priv->shell, GTK_DIALOG (dialog));
g_signal_connect (dialog, "response",
G_CALLBACK (gs_page_remove_authenticate_cb),
- helper);
+ g_steal_pointer (&helper));
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]