[cig-commits] [commit] master: dangling delete fix (2e9b162)

cig_noreply at geodynamics.org cig_noreply at geodynamics.org
Wed Jan 28 22:38:14 PST 2015


Repository : https://github.com/geodynamics/vq

On branch  : master
Link       : https://github.com/geodynamics/vq/compare/4a71dae87966b80bfee7c194773543359a343617...941b3d7e55983967dea392d12aeac9ce3998ca30

>---------------------------------------------------------------

commit 2e9b162ed9a83a416dae9408e7d168136e27df90
Author: Kasey Schultz <kwschultz at ucdavis.edu>
Date:   Wed Jan 28 21:53:00 2015 -0800

    dangling delete fix


>---------------------------------------------------------------

2e9b162ed9a83a416dae9408e7d168136e27df90
 quakelib/src/QuakeLibIO.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/quakelib/src/QuakeLibIO.cpp b/quakelib/src/QuakeLibIO.cpp
index 823b49d..165cd5c 100644
--- a/quakelib/src/QuakeLibIO.cpp
+++ b/quakelib/src/QuakeLibIO.cpp
@@ -2976,10 +2976,10 @@ void quakelib::ModelEventSet::read_sweeps_hdf5(const hid_t &data_file) {
         fit->setSweeps(new_sweeps);
         
     }
+    delete event_sweeps;
 #else
     // TODO: Error out
 #endif
-    delete event_sweeps;
 }
 
 // ********************************************************************************************



More information about the CIG-COMMITS mailing list