[recipes] Fix a refcounting error
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes] Fix a refcounting error
- Date: Sun, 19 Feb 2017 01:11:35 +0000 (UTC)
commit f6617e22095f3fab30ebfa7efd23edb471f005ff
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Feb 18 18:46:29 2017 -0500
Fix a refcounting error
We can't use an autoptr if we don't have our own reference.
This was loosing a reference, causing criticals when cleaning
up the store at exit.
src/gr-chef-dialog.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gr-chef-dialog.c b/src/gr-chef-dialog.c
index b8fd8c2..9c3a468 100644
--- a/src/gr-chef-dialog.c
+++ b/src/gr-chef-dialog.c
@@ -287,7 +287,7 @@ static void
gr_chef_dialog_set_chef (GrChefDialog *self,
GrChef *chef)
{
- g_autoptr(GrChef) old_chef = self->chef;
+ GrChef *old_chef = self->chef;
revert_changes (self);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]