gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_final-


From: Gabriele Giacone
Subject: [Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_final-1707-gb9e45cd
Date: Tue, 06 Aug 2013 11:29:04 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnash".

The branch, master has been updated
       via  b9e45cd77df2fe846dc6700e8b6a0bbfcc3f0178 (commit)
       via  ee880c6bfc28b71e0a760c6d484acba30524636f (commit)
       via  42e40705c519b6abf48744825c006d3134928059 (commit)
       via  420ca8e46a9c243df80f5b6eeb27f91c31ffcadd (commit)
       via  439df46da3c8c037e34e6762f3751f4fc94dff42 (commit)
       via  02deaa2f24112130eaa60b13882fe530d256cdd8 (commit)
      from  3dad91a5e2d387cacbe00199bf69b3ca70646725 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit//commit/?id=b9e45cd77df2fe846dc6700e8b6a0bbfcc3f0178


commit b9e45cd77df2fe846dc6700e8b6a0bbfcc3f0178
Author: Gabriele Giacone <address@hidden>
Date:   Mon Aug 5 01:47:18 2013 +0200

    cppcheck: uninitialized variable.

diff --git a/gui/fb/fb.cpp b/gui/fb/fb.cpp
index 336fb6e..41153d8 100644
--- a/gui/fb/fb.cpp
+++ b/gui/fb/fb.cpp
@@ -375,7 +375,7 @@ FBGui::run()
 //  GNASH_REPORT_FUNCTION;
 
 #ifdef USE_TSLIB
-    int ts_loop_count;
+    int ts_loop_count = 0;
 #endif
 
     VirtualClock& timer = getClock();

http://git.savannah.gnu.org/cgit//commit/?id=ee880c6bfc28b71e0a760c6d484acba30524636f


commit ee880c6bfc28b71e0a760c6d484acba30524636f
Author: Gabriele Giacone <address@hidden>
Date:   Mon Aug 5 01:43:39 2013 +0200

    cppcheck: resource leak.

diff --git a/testsuite/misc-ming.all/Video-EmbedSquareTest.c 
b/testsuite/misc-ming.all/Video-EmbedSquareTest.c
index 1fea05a..89682e6 100644
--- a/testsuite/misc-ming.all/Video-EmbedSquareTest.c
+++ b/testsuite/misc-ming.all/Video-EmbedSquareTest.c
@@ -89,7 +89,10 @@ main(int argc, char** argv)
   mo = newSWFMovie();
   SWFMovie_setDimension(mo, 320, 96);
 
-  if (mo == NULL) return -1;
+  if (mo == NULL) {
+    fclose(flv);
+    return -1;
+  }
 
   SWFMovie_setRate(mo, 5);
 

http://git.savannah.gnu.org/cgit//commit/?id=42e40705c519b6abf48744825c006d3134928059


commit 42e40705c519b6abf48744825c006d3134928059
Author: Gabriele Giacone <address@hidden>
Date:   Mon Aug 5 01:20:07 2013 +0200

    cppcheck: fix mismatching alloc/dealloc.

diff --git a/testsuite/libbase.all/memtest.cpp 
b/testsuite/libbase.all/memtest.cpp
index ad5cb2f..4563da4 100644
--- a/testsuite/libbase.all/memtest.cpp
+++ b/testsuite/libbase.all/memtest.cpp
@@ -117,7 +117,7 @@ main (int /*argc*/, char** /*argv*/) {
     }
 
     sv.push_back("Aloha");
-    delete x;
+    delete[] x;
     mem.addStats(__LINE__);             // take a sample
     diff = mem.diffStats();
 //    cerr << "Second string allocated: " << diff << endl;
@@ -192,7 +192,7 @@ long *
 test_noleak()
 {
     long *x = test_leak();
-    delete x;
+    delete[] x;
 
     return 0;
 }

http://git.savannah.gnu.org/cgit//commit/?id=420ca8e46a9c243df80f5b6eeb27f91c31ffcadd


commit 420ca8e46a9c243df80f5b6eeb27f91c31ffcadd
Author: Gabriele Giacone <address@hidden>
Date:   Mon Aug 5 01:05:09 2013 +0200

    cppcheck: resource leak.

diff --git a/testsuite/libbase.all/CurlStreamTest.cpp 
b/testsuite/libbase.all/CurlStreamTest.cpp
index 8489926..4f15b6a 100644
--- a/testsuite/libbase.all/CurlStreamTest.cpp
+++ b/testsuite/libbase.all/CurlStreamTest.cpp
@@ -96,7 +96,7 @@ dump_file(const char* url, ostream& os)
                        os << buf[i];
                }
        }
-
+       fclose(f);
 }
 
 int

http://git.savannah.gnu.org/cgit//commit/?id=439df46da3c8c037e34e6762f3751f4fc94dff42


commit 439df46da3c8c037e34e6762f3751f4fc94dff42
Author: Gabriele Giacone <address@hidden>
Date:   Mon Aug 5 00:54:50 2013 +0200

    cppcheck: remove useless #if which breaks {} pair.

diff --git a/libcore/asobj/NetStream_as.cpp b/libcore/asobj/NetStream_as.cpp
index b915df9..cf2110c 100644
--- a/libcore/asobj/NetStream_as.cpp
+++ b/libcore/asobj/NetStream_as.cpp
@@ -560,11 +560,9 @@ NetStream_as::getDecodedVideoFrame(boost::uint32_t ts)
         return video; 
     }
 
-#if MEDIA_CONFIG == none
     boost::uint64_t nextTimestamp;
     bool parsingComplete = _parser->parsingCompleted();
     if (!_parser->nextVideoFrameTimestamp(nextTimestamp)) {
-#endif
         
 #ifdef GNASH_DEBUG_DECODING
         log_debug(_("getDecodedVideoFrame(%d): "

http://git.savannah.gnu.org/cgit//commit/?id=02deaa2f24112130eaa60b13882fe530d256cdd8


commit 02deaa2f24112130eaa60b13882fe530d256cdd8
Author: Gabriele Giacone <address@hidden>
Date:   Sun Aug 4 18:51:54 2013 +0200

    cppcheck: check if realloc succeeds and save old location.

diff --git a/librender/agg/Renderer_agg.h b/librender/agg/Renderer_agg.h
index 0c88c7c..f95c4ad 100644
--- a/librender/agg/Renderer_agg.h
+++ b/librender/agg/Renderer_agg.h
@@ -30,7 +30,7 @@ class Renderer_agg_base : public Renderer
 {
 private:
     
-    unsigned char *_testBuffer; // buffer used by initTestBuffer() only
+    unsigned char *_testBuffer, *_testBufferTmp; // buffers used by 
initTestBuffer() only
     
 public:
     
@@ -50,7 +50,14 @@ public:
     virtual bool initTestBuffer(unsigned width, unsigned height) {
         int size = width * height * getBytesPerPixel();
         
-        _testBuffer = static_cast<unsigned char *>(realloc(_testBuffer, size));
+        _testBufferTmp = static_cast<unsigned char *>(realloc(_testBuffer, 
size));
+        if (_testBufferTmp == NULL) {
+            log_error(_("Memory reallocation error"));
+            return false;
+        } else {
+            _testBuffer = _testBufferTmp;
+        }
+
         memset(_testBuffer, 0, size);
         printf("Renderer Test memory at: %p\n", _testBuffer);
         

-----------------------------------------------------------------------

Summary of changes:
 gui/fb/fb.cpp                                   |    2 +-
 libcore/asobj/NetStream_as.cpp                  |    2 --
 librender/agg/Renderer_agg.h                    |   11 +++++++++--
 testsuite/libbase.all/CurlStreamTest.cpp        |    2 +-
 testsuite/libbase.all/memtest.cpp               |    4 ++--
 testsuite/misc-ming.all/Video-EmbedSquareTest.c |    5 ++++-
 6 files changed, 17 insertions(+), 9 deletions(-)


hooks/post-receive
-- 
Gnash



reply via email to

[Prev in Thread] Current Thread [Next in Thread]