mirror of
https://github.com/jtheoof/swappy.git
synced 2024-08-16 18:20:45 +03:00
chore(algebra): make valgrind happy
This commit is contained in:
parent
b4a202ef48
commit
58aef1ef37
@ -6,7 +6,7 @@
|
||||
struct gaussian_kernel *gaussian_kernel(int width, double sigma) {
|
||||
double sum = 0;
|
||||
gint size = width * width + 1;
|
||||
double *kernel = g_new(double, size);
|
||||
double *kernel = g_new0(double, size);
|
||||
struct gaussian_kernel *gaussian = g_new(struct gaussian_kernel, 1);
|
||||
for (gint y = 0; y < width; y++) {
|
||||
for (gint x = 0; x < width; x++) {
|
||||
|
Loading…
Reference in New Issue
Block a user