Commit 2bc60a44 authored by Dan Williams's avatar Dan Williams
Browse files

2005-09-04 Dan Williams <dcbw@redhat.com>

	* src/nm-activation-request.c
		- (nm_act_request_unref): actually free the structure,
			which we didn't seem to be doing before


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@934 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
parent 837c65d4
2005-09-04 Dan Williams <dcbw@redhat.com>
* src/nm-activation-request.c
- (nm_act_request_unref): actually free the structure,
which we didn't seem to be doing before
2005-09-04 Dan Williams <dcbw@redhat.com>
Patch from John Palmieri <johnp@redhat.com>
......
......@@ -87,7 +87,8 @@ void nm_act_request_unref (NMActRequest *req)
{
g_return_if_fail (req != NULL);
if (req->refcount == 1)
req->refcount--;
if (req->refcount <= 0)
{
nm_device_unref (req->dev);
if (req->ap)
......@@ -100,9 +101,8 @@ void nm_act_request_unref (NMActRequest *req)
}
memset (req, 0, sizeof (NMActRequest));
g_free (req);
}
else
req->refcount--;
}
NMDevice * nm_act_request_get_dev (NMActRequest *req)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment