ppp: fix warning when PPP support is disabled

This commit is contained in:
Dan Williams 2011-02-25 11:03:53 -06:00
parent 2140dad5e0
commit bf34e7099d

View file

@ -166,7 +166,8 @@ dispose (GObject *object)
nm_ppp_manager_stop (NM_PPP_MANAGER (object));
g_object_unref (priv->act_req);
if (priv->act_req)
g_object_unref (priv->act_req);
g_object_unref (priv->dbus_manager);
G_OBJECT_CLASS (nm_ppp_manager_parent_class)->dispose (object);
@ -785,6 +786,8 @@ create_pppd_cmd_line (NMPPPManager *self,
NMCmdLine *cmd;
const char *ppp_debug;
g_return_val_if_fail (setting != NULL, NULL);
ppp_binary = nm_find_pppd ();
if (!ppp_binary) {
g_set_error (err, NM_PPP_MANAGER_ERROR, NM_PPP_MANAGER_ERROR,