[cairo-commit] cairomm/cairomm refptr.h,1.4,1.5
Murray Cumming
commit at pdx.freedesktop.org
Tue Jul 11 11:54:12 PDT 2006
Committed by: murrayc
Update of /cvs/cairo/cairomm/cairomm
In directory kemper:/tmp/cvs-serv5600/cairomm
Modified Files:
refptr.h
Log Message:
2006-07-11 Murray Cumming <murrayc at murrayc.com>
* cairomm/refptr.h: unref(): Only delete the refcount int when the refcount has
reached 0, instead of deleting it every time. Thanks valgrind.
Index: refptr.h
===================================================================
RCS file: /cvs/cairo/cairomm/cairomm/refptr.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- refptr.h 11 Jul 2006 17:16:21 -0000 1.4
+++ refptr.h 11 Jul 2006 18:54:10 -0000 1.5
@@ -206,10 +206,10 @@
delete pCppObject_;
pCppObject_ = 0;
}
- }
- delete pCppRefcount_;
+ delete pCppRefcount_;
pCppRefcount_ = 0;
+ }
}
}
More information about the cairo-commit
mailing list