Repository: lucy-clownfish
Updated Branches:
  refs/heads/master 127a7e61a -> 0bb83b54a


Add missing CFCBase_incref


Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/a856950a
Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/a856950a
Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/a856950a

Branch: refs/heads/master
Commit: a856950aab848540c2c80019cfa4da1460e55390
Parents: 127a7e6
Author: Nick Wellnhofer <[email protected]>
Authored: Wed Dec 24 16:04:48 2014 +0100
Committer: Nick Wellnhofer <[email protected]>
Committed: Wed Dec 24 16:04:48 2014 +0100

----------------------------------------------------------------------
 compiler/src/CFCMethod.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/a856950a/compiler/src/CFCMethod.c
----------------------------------------------------------------------
diff --git a/compiler/src/CFCMethod.c b/compiler/src/CFCMethod.c
index 2a1bba1..3173681 100644
--- a/compiler/src/CFCMethod.c
+++ b/compiler/src/CFCMethod.c
@@ -255,8 +255,9 @@ CFCMethod_finalize(CFCMethod *self) {
                         self->function.param_list,
                         self->function.docucomment, true,
                         self->is_abstract);
-    finalized->novel_method = self->novel_method;
-    finalized->is_novel     = self->is_novel;
+    finalized->novel_method
+        = (CFCMethod*)CFCBase_incref((CFCBase*)self->novel_method);
+    finalized->is_novel = self->is_novel;
     return finalized;
 }
 

Reply via email to