You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by rh...@apache.org on 2015/01/14 22:16:17 UTC

qpid-proton git commit: use the min variable even when assertions are not enabled

Repository: qpid-proton
Updated Branches:
  refs/heads/master 4b0261c10 -> 26f3db408


use the min variable even when assertions are not enabled


Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/26f3db40
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/26f3db40
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/26f3db40

Branch: refs/heads/master
Commit: 26f3db4084841d7aaa0a8704062873f5f2878e1e
Parents: 4b0261c
Author: Rafael Schloming <rh...@alum.mit.edu>
Authored: Wed Jan 14 16:16:06 2015 -0500
Committer: Rafael Schloming <rh...@alum.mit.edu>
Committed: Wed Jan 14 16:16:06 2015 -0500

----------------------------------------------------------------------
 proton-c/src/reactor/timer.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/26f3db40/proton-c/src/reactor/timer.c
----------------------------------------------------------------------
diff --git a/proton-c/src/reactor/timer.c b/proton-c/src/reactor/timer.c
index 8281fea..1ad0821 100644
--- a/proton-c/src/reactor/timer.c
+++ b/proton-c/src/reactor/timer.c
@@ -130,8 +130,8 @@ void pn_timer_tick(pn_timer_t *timer, pn_timestamp_t now) {
     if (now >= task->deadline) {
       pn_task_t *min = (pn_task_t *) pn_list_minpop(timer->tasks);
       assert(min == task);
-      pn_collector_put(timer->collector, PN_OBJECT, task, PN_TIMER_TASK);
-      pn_decref(task);
+      pn_collector_put(timer->collector, PN_OBJECT, min, PN_TIMER_TASK);
+      pn_decref(min);
     } else {
       break;
     }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org