pidgin/pidgin
Clone
Summary
Browse
Changes
Graph
Fix cleanup of acconut password on deletion
18 months ago, Elliott Sales de Andrade
c1b117cf84ce
Parents
180e63127ef9
Children
9898678c8cbd
Fix cleanup of acconut password on deletion
The callback expects the account as its callback data, but none was passed.
Testing Done:
Deleted an account and saw no failing `G_IS_OBJECT` critical.
Reviewed at https://reviews.imfreedom.org/r/2041/
1 files changed, 2 insertions(+), 2 deletions(-)
+2
-2
libpurple/accounts.c
--- a/libpurple/accounts.c Sat Nov 05 05:33:16 2022 -0500
+++ b/libpurple/accounts.c Sun Nov 06 17:41:45 2022 -0600
@@ -470,7 +470,7 @@
g_clear_error(&error);
}
- g_object_unref(G_OBJECT(account));
+ g_object_unref(account);
}
void
@@ -557,7 +557,7 @@
cred_manager = purple_credential_manager_get_default();
purple_credential_manager_clear_password_async(cred_manager, account, NULL,
purple_accounts_delete_set,
- NULL);
+ g_object_ref(account));
}
static void