[med-svn] [conquest-dicom-server] 03/14: Patch deivr.cxx and deivr.hpp to add destructor

Pablo Lorenzzoni spectra at moszumanska.debian.org
Tue Mar 11 17:55:12 UTC 2014


This is an automated email from the git hooks/post-receive script.

spectra pushed a commit to branch master
in repository conquest-dicom-server.

commit bf9e3729f9ad78c80f66ca578d2b06e90f568c40
Author: Pablo Lorenzzoni <spectra at debian.org>
Date:   Wed Feb 5 17:41:42 2014 -0200

    Patch deivr.cxx and deivr.hpp to add destructor
---
 debian/patches/0014-Fix-cppcheck-bug-2.patch | 39 ++++++++++++++++++++++++++++
 debian/patches/series                        |  1 +
 2 files changed, 40 insertions(+)

diff --git a/debian/patches/0014-Fix-cppcheck-bug-2.patch b/debian/patches/0014-Fix-cppcheck-bug-2.patch
new file mode 100644
index 0000000..049d455
--- /dev/null
+++ b/debian/patches/0014-Fix-cppcheck-bug-2.patch
@@ -0,0 +1,39 @@
+From: Pablo Lorenzzoni <spectra at debian.org>
+Date: Wed, 5 Feb 2014 17:40:22 -0200
+Subject: Fix cppcheck bug #2
+
+[deivr.hpp:112]: (error) Memory leak: VRGroupPQueue::Element0
+---
+ deivr.cxx |    6 ++++++
+ deivr.hpp |    1 +
+ 2 files changed, 7 insertions(+)
+
+diff --git a/deivr.cxx b/deivr.cxx
+index 9c4e536..d7f4884 100644
+--- a/deivr.cxx
++++ b/deivr.cxx
+@@ -387,6 +387,12 @@ UINT	VRGroupPQueue	::	operator	==	(VRGroupPQueue	&vrgroup)
+ 	return ( 0 );
+ }
+ 
++
++VRGroupPQueue	::	~VRGroupPQueue()
++{
++	delete Element0;
++}
++
+ /*****************************************************
+  *
+  * DICOM Objects
+diff --git a/deivr.hpp b/deivr.hpp
+index 851befe..252f1d0 100644
+--- a/deivr.hpp
++++ b/deivr.hpp
+@@ -114,6 +114,7 @@ class	VRGroupPQueue	:
+ 		BOOL	Push(VR	*vr);
+ 		VR		*Pop();
+ 		VR		*GroupLength();
++		~VRGroupPQueue();	// Need a destructor (it has a pointer)
+ 		UINT		operator	>	(VRGroupPQueue	&vrgroup);
+ 		UINT		operator	<	(VRGroupPQueue	&vrgroup);
+ 		UINT		operator	==	(VRGroupPQueue	&vrgroup);
diff --git a/debian/patches/series b/debian/patches/series
index 628672d..79efcb5 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -11,3 +11,4 @@
 0011-Fix-cppcheck-bug-4.patch
 0012-Fix-cppcheck-bug-5.5.patch
 0013-Fix-cppcheck-bugs-8-e-9.patch
+0014-Fix-cppcheck-bug-2.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/conquest-dicom-server.git



More information about the debian-med-commit mailing list