aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloateranimpreview.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:56 -0500
committerJacek Antonelli2008-08-15 23:44:56 -0500
commitc07901e29ed545bbb02e3bddf148fe1104b94e9f (patch)
treef1ada64ce834acd7d92a425efb96c4b86bcf16b1 /linden/indra/newview/llfloateranimpreview.cpp
parentSecond Life viewer sources 1.15.0.2 (diff)
downloadmeta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.zip
meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.gz
meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.bz2
meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.xz
Second Life viewer sources 1.15.1.3
Diffstat (limited to 'linden/indra/newview/llfloateranimpreview.cpp')
-rw-r--r--linden/indra/newview/llfloateranimpreview.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/linden/indra/newview/llfloateranimpreview.cpp b/linden/indra/newview/llfloateranimpreview.cpp
index 6802fb2..b1f8a53 100644
--- a/linden/indra/newview/llfloateranimpreview.cpp
+++ b/linden/indra/newview/llfloateranimpreview.cpp
@@ -54,7 +54,7 @@
54#include "llviewercamera.h" 54#include "llviewercamera.h"
55#include "llviewerobjectlist.h" 55#include "llviewerobjectlist.h"
56#include "llviewerwindow.h" 56#include "llviewerwindow.h"
57#include "llviewermenu.h" 57#include "llviewermenufile.h" // upload_new_resource()
58#include "llvoavatar.h" 58#include "llvoavatar.h"
59#include "pipeline.h" 59#include "pipeline.h"
60#include "viewer.h" 60#include "viewer.h"
@@ -221,7 +221,7 @@ BOOL LLFloaterAnimPreview::postBuild()
221 } 221 }
222 222
223 apr_file_close(fp); 223 apr_file_close(fp);
224 delete file_buffer; 224 delete[] file_buffer;
225 } 225 }
226 } 226 }
227 227
@@ -247,11 +247,11 @@ BOOL LLFloaterAnimPreview::postBuild()
247 // pass animation data through memory buffer 247 // pass animation data through memory buffer
248 loaderp->serialize(dp); 248 loaderp->serialize(dp);
249 dp.reset(); 249 dp.reset();
250 BOOL success = motionp->deserialize(dp); 250 BOOL success = motionp && motionp->deserialize(dp);
251 251
252 delete []buffer; 252 delete []buffer;
253 253
254 if (motionp && success) 254 if (success)
255 { 255 {
256 const LLBBoxLocal &pelvis_bbox = motionp->getPelvisBBox(); 256 const LLBBoxLocal &pelvis_bbox = motionp->getPelvisBBox();
257 257