From 85176f03a1d9f5600db9df9f970852b3b342780a Mon Sep 17 00:00:00 2001 From: Martin Wilke Date: Tue, 26 Mar 2013 04:45:25 +0000 Subject: - Fix crash when locale is set to certain values PR: 176558 Submitted by: ports fury --- multimedia/2mandvd/files/patch-rendering.cpp | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 multimedia/2mandvd/files/patch-rendering.cpp (limited to 'multimedia/2mandvd/files/patch-rendering.cpp') diff --git a/multimedia/2mandvd/files/patch-rendering.cpp b/multimedia/2mandvd/files/patch-rendering.cpp new file mode 100644 index 000000000000..90781ba0aa14 --- /dev/null +++ b/multimedia/2mandvd/files/patch-rendering.cpp @@ -0,0 +1,27 @@ +--- rendering.cpp.orig ++++ rendering.cpp +@@ -2017,8 +2017,13 @@ + + int valuefade; + ++#ifdef __clang__ ++ QString *wl_tabpnt = new QString[nbre_menuth+1]; ++ QString *wl_tab_save_tra = new QString[100]; ++#else + QString wl_tabpnt[nbre_menuth+1]; + QString wl_tab_save_tra[100]; ++#endif + + QRgb srcPixel; + QRgb srcPixel2; +@@ -2991,6 +2996,10 @@ + renderProcess.start(program,arguments); + } + } ++#ifdef __clang__ ++ delete[] wl_tab_save_tra; ++ delete[] wl_tabpnt; ++#endif + } + + void mainfrm::f_gene_mencoder() -- cgit v1.2.3