gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] gnash ChangeLog libbase/image.h


From: Bastiaan Jacques
Subject: [Gnash-commit] gnash ChangeLog libbase/image.h
Date: Tue, 10 Apr 2007 22:55:20 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Bastiaan Jacques <bjacques>     07/04/10 22:55:20

Modified files:
        .              : ChangeLog 
        libbase        : image.h 

Log message:
        Define a virtual destructor for the image_base 
        class so deriving classes will have their destructors called 
        when we decide to delete them. Fixes a _big_ memory leak.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.2835&r2=1.2836
http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/image.h?cvsroot=gnash&r1=1.11&r2=1.12

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.2835
retrieving revision 1.2836
diff -u -b -r1.2835 -r1.2836
--- ChangeLog   10 Apr 2007 21:44:14 -0000      1.2835
+++ ChangeLog   10 Apr 2007 22:55:20 -0000      1.2836
@@ -32,6 +32,9 @@
        if necessary.
        * server/xmlsocket.cpp: Use SIZET_FMT.
        * libbase/image.cpp: Document update().
+       * libbase/image.h: Define a virtual destructor for the image_base
+       class so deriving classes will have their destructors called
+       when we decide to delete them. Fixes a _big_ memory leak.
 
 2007-04-10  Rob Savoye  <address@hidden>
 

Index: libbase/image.h
===================================================================
RCS file: /sources/gnash/gnash/libbase/image.h,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -b -r1.11 -r1.12
--- libbase/image.h     5 Dec 2006 14:26:09 -0000       1.11
+++ libbase/image.h     10 Apr 2007 22:55:20 -0000      1.12
@@ -42,6 +42,7 @@
 
                image_base(uint8_t* data, int width, int height, int pitch, 
id_image type);
                void update(uint8_t* data);
+               virtual ~image_base() {}
        };
 
        /// 24-bit RGB image.  Packed data, red byte first (RGBRGB...)
@@ -86,7 +87,7 @@
        enum {Y, U, V, T, NB_TEXS};
 
        yuv(int w, int h);
-       ~yuv();
+       ~yuv() {}
        void update(uint8_t* data);
        unsigned int video_nlpo2(unsigned int x) const;
        int size() const;




reply via email to

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