cli: don't unref cancellable if already done

This commit is contained in:
Aleksander Morgado
2011-12-19 12:29:12 +01:00
parent 55654d5b46
commit 0dec4b447e

View File

@@ -243,7 +243,8 @@ main (gint argc, gchar **argv)
mmcli_modem_shutdown (); mmcli_modem_shutdown ();
} }
g_object_unref (cancellable); if (cancellable)
g_object_unref (cancellable);
g_main_loop_unref (loop); g_main_loop_unref (loop);
g_object_unref (connection); g_object_unref (connection);