summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2018-07-23 20:49:18 +0200
committerLubomir Rintel <lkundrak@v3.sk>2018-07-24 12:35:52 +0200
commit516f3f6c70ef9694d6004c64d50a9f3cd2725ab7 (patch)
tree3553d73ba550dbe6cdf72e0385084e6789016522
parent9d79ffdb148b31c7194c66946c87b6cd57ed54a3 (diff)
downloadnetwork-manager-applet-lr/hold-import.tar.gz
bluetooth: fix an assert failure on creation cancellationlr/hold-import
$ nm-connection-editor --create --type bluetooth <ESC> GLib-GObject-CRITICAL: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
-rw-r--r--src/connection-editor/page-bluetooth.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/connection-editor/page-bluetooth.c b/src/connection-editor/page-bluetooth.c
index f6a25d85..9fed7a83 100644
--- a/src/connection-editor/page-bluetooth.c
+++ b/src/connection-editor/page-bluetooth.c
@@ -274,7 +274,8 @@ out:
nma_mobile_wizard_destroy (wizard);
g_object_unref (info->client);
- g_object_unref (info->connection);
+ g_clear_object (&info->connection);
+
g_free (info);
}