summaryrefslogtreecommitdiff
path: root/multimedia/2mandvd/files/patch-rendering.cpp
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2013-03-26 04:45:25 +0000
committerMartin Wilke <miwi@FreeBSD.org>2013-03-26 04:45:25 +0000
commit85176f03a1d9f5600db9df9f970852b3b342780a (patch)
tree16e22d63be75d45cb4631212c3ad594a1ddbf6cd /multimedia/2mandvd/files/patch-rendering.cpp
parent- Update to 0.8 (diff)
- Fix crash when locale is set to certain values
PR: 176558 Submitted by: ports fury
Diffstat (limited to 'multimedia/2mandvd/files/patch-rendering.cpp')
-rw-r--r--multimedia/2mandvd/files/patch-rendering.cpp27
1 files changed, 27 insertions, 0 deletions
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()