[vlc-devel] commit: Don't mix up malloc and delete. ( Rémi Duraffort )

git version control git at videolan.org
Thu Jul 31 19:35:47 CEST 2008


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Thu Jul 31 19:27:53 2008 +0200| [d45b2b0b2d7b9c56036fb6410150d8109a690634]

Don't mix up malloc and delete.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d45b2b0b2d7b9c56036fb6410150d8109a690634
---

 modules/video_filter/atmo/atmo.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/video_filter/atmo/atmo.cpp b/modules/video_filter/atmo/atmo.cpp
index 77e63ae..10f728c 100644
--- a/modules/video_filter/atmo/atmo.cpp
+++ b/modules/video_filter/atmo/atmo.cpp
@@ -1176,7 +1176,7 @@ static void Atmo_SetupParameters(filter_t *p_filter)
                                           "error %d",psz_gradient_file,i_res);
                     }
                 }
-                delete psz_gradient_file;
+                free( psz_gradient_file );
             }
 
             p_sys->p_atmo_dyndata = new CAtmoDynData((vlc_object_t *)p_filter,




More information about the vlc-devel mailing list