Skip to content

Commit 06466ac

Browse files
committed
merge
2 parents cc85248 + 74dcbfa commit 06466ac

File tree

24 files changed

+126
-87
lines changed

24 files changed

+126
-87
lines changed

configure.ac

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,18 @@ AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects tar-pax])
44
m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
55
LT_INIT
66

7+
# Check if we should disable rpath.
8+
#
9+
# For advanced users: In certain configurations, the rpath attributes
10+
# added by libtool cause problems as rpath will be preferred over
11+
# LD_LIBRARY_PATH. This does not seem to be a problem with
12+
# clang. When using --disable-rpath you will likely need to set
13+
# LD_LIBRARY_PATH if you are using libraries in non-system locations.
14+
# YMMV.
15+
#
16+
17+
DISABLE_RPATH
18+
719
AC_PROG_CXX
820
AC_LANG(C++)
921

@@ -133,7 +145,7 @@ AS_IF([test "x$enable_qt" = "xyes"], [
133145
134146
AC_CHECK_PROGS(MOC, [moc-qt5 moc])
135147
AC_CHECK_PROGS(UIC, [uic-qt5 uic])
136-
AC_CHECK_PROGS(RCC, [rcc])
148+
AC_CHECK_PROGS(RCC, [rcc-qt5 rcc])
137149
if test -z "$MOC" || test -z "$UIC" || test -z "$RCC"; then
138150
AC_MSG_ERROR([Qt utility programs moc, uic, and rcc are required.])
139151
fi

m4/disable-rpath.m4

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
dnl file : m4/disable-rpath.m4
2+
dnl author : Boris Kolpackov <[email protected]>
3+
dnl copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC
4+
dnl license : GNU GPL v2; see accompanying LICENSE file
5+
dnl
6+
AC_DEFUN([DISABLE_RPATH],[
7+
8+
AC_MSG_CHECKING([whether to use rpath])
9+
AC_ARG_ENABLE(
10+
[rpath],
11+
[AC_HELP_STRING([--disable-rpath], [patch libtool to not use rpath])],
12+
[libtool_rpath="$enable_rpath"],
13+
[libtool_rpath="yes"])
14+
AC_MSG_RESULT($libtool_rpath)
15+
16+
# Patch libtool to not use rpath if requested.
17+
#
18+
AC_CONFIG_COMMANDS(
19+
[libtool-rpath-patch],
20+
[if test "$libtool_use_rpath" = "no"; then
21+
sed < libtool > libtool-2 's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_NO_RPATH__ "/'
22+
mv libtool-2 libtool
23+
chmod 755 libtool
24+
fi],
25+
[libtool_use_rpath=$libtool_rpath])
26+
])dnl
27+

presets/presets_bltc201/Zylot - Digiscape Advanced Processor.milk.bak

Lines changed: 0 additions & 53 deletions
This file was deleted.

src/NativePresets/Makefile.am

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,10 @@ libRovastarDarkSecret_la_SOURCES = RovastarDarkSecret.cpp
2727
libRovastarDriftingChaos_la_SOURCES = RovastarDriftingChaos.cpp
2828
libRovastarFractalSpiral_la_SOURCES = RovastarFractalSpiral.cpp
2929
libRovastarFractopiaFrantic_la_SOURCES = RovastarFractopiaFrantic.cpp
30+
31+
libMstressJuppyDancer_la_LDFLAGS = -avoid-version
32+
libRLGFractalDrop7c_la_LDFLAGS = -avoid-version
33+
libRovastarDarkSecret_la_LDFLAGS = -avoid-version
34+
libRovastarDriftingChaos_la_LDFLAGS = -avoid-version
35+
libRovastarFractalSpiral_la_LDFLAGS = -avoid-version
36+
libRovastarFractopiaFrantic_la_LDFLAGS = -avoid-version

src/libprojectM/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ AM_CPPFLAGS = \
1414
lib_LTLIBRARIES = libprojectM.la # public, possibly-shared library
1515

1616
# link flags
17-
libprojectM_la_LDFLAGS = $(CG_LDFLAGS) -no-undefined -version-info 0:2:0
17+
libprojectM_la_LDFLAGS = $(CG_LDFLAGS) -no-undefined -version-info 2:0:0
1818

1919
# link libRenderer, MilkdropPresetFactory, NativePresetFactory, and libprojectM sources
2020
libprojectM_la_LIBADD = \

src/libprojectM/MilkdropPresetFactory/Expr.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,11 @@ class MultAndAddExpr : public Expr
180180
a(_a), b(_b), c(_c)
181181
{
182182
}
183+
~MultAndAddExpr() {
184+
delete a;
185+
delete b;
186+
delete c;
187+
}
183188
float eval(int mesh_i, int mesh_j)
184189
{
185190
float a_value = a->eval(mesh_i,mesh_j);

src/libprojectM/MilkdropPresetFactory/MilkdropPreset.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,7 @@ MilkdropPreset::~MilkdropPreset()
9393
delete(*pos);
9494
}
9595
customWaves.clear();
96-
customShapes.clear();
97-
presetOutputs().customWaves.clear();
98-
presetOutputs().customShapes.clear();
99-
presetOutputs().drawables.clear();
100-
96+
customShapes.clear();
10197
}
10298

10399
/* Adds a per pixel equation according to its string name. This

src/libprojectM/MilkdropPresetFactory/Param.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ class Preset;
6262
#include <immintrin.h>
6363
#endif
6464

65-
6665
/* Parameter Type */
6766
class Param {
6867
public:
@@ -155,3 +154,4 @@ inline void Param::set_param( float val) {
155154
}
156155

157156
#endif /** !_PARAM_TYPES_H */
157+

src/libprojectM/MilkdropPresetFactory/Parser.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -986,6 +986,10 @@ Expr * Parser::parse_gen_expr ( std::istream & fs, TreeExpr * tree_expr, Milkdr
986986
return NULL;
987987
//std::cout << gen_expr << std::endl;
988988
Expr *opt = gen_expr->optimize();
989+
990+
if (opt != gen_expr) {
991+
delete gen_expr;
992+
}
989993
//std::cout << opt << std::endl << std::endl;
990994
return opt;
991995
}
@@ -2461,6 +2465,8 @@ int Parser::parse_shape_per_frame_init_eqn(std::istream & fs, CustomShape * cus
24612465

24622466
line_mode = CUSTOM_SHAPE_PER_FRAME_INIT_LINE_MODE;
24632467
init_cond->evaluate(true);
2468+
2469+
delete init_cond;
24642470
return PROJECTM_SUCCESS;
24652471
}
24662472

src/libprojectM/MilkdropPresetFactory/PresetFrameIO.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,10 @@ PresetOutputs::~PresetOutputs()
122122
this->rot_mesh = free_mesh(this->rot_mesh);
123123
this->orig_x = free_mesh(this->orig_x);
124124
this->orig_y = free_mesh(this->orig_y);
125+
126+
customWaves.clear();
127+
customShapes.clear();
128+
drawables.clear();
125129
}
126130

127131

@@ -460,7 +464,6 @@ void PresetOutputs::Initialize ( int gx, int gy )
460464
this->gy = gy;
461465

462466
staticPerPixel = true;
463-
setStaticPerPixel(gx,gy);
464467

465468
assert(this->gx > 0);
466469
int x;

0 commit comments

Comments
 (0)