Skip to content

Commit

Permalink
DBusPendingCall should be cancelled and unref'd when the client instance
Browse files Browse the repository at this point in the history
is destroyed. (NB#252614)
  • Loading branch information
Harri Mähönen committed May 11, 2011
1 parent d68f400 commit b36d972
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libngf/client.c
Expand Up @@ -264,6 +264,12 @@ _free_active_event (NgfEvent *event, void *userdata)
static void
_free_pending_reply (NgfReply *reply, void *userdata)
{
if (reply->pending) {
dbus_pending_call_cancel (reply->pending);
dbus_pending_call_unref (reply->pending);
reply->pending = NULL;
}

free (reply);
}

Expand Down

0 comments on commit b36d972

Please sign in to comment.