~ubuntu-branches/ubuntu/trusty/wildmidi/trusty

« back to all changes in this revision

Viewing changes to debian/patches/02_memleaks.patch

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2008-02-21 15:59:08 UTC
  • Revision ID: james.westby@ubuntu.com-20080221155908-mwejzboguy42tqds
Tags: 0.2.2-1~hardy1
Sync of the Debian package that currently waits on NEW.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--- wildmidi-0.2.2.orig/src/wildmidi_lib.c
 
2
+++ wildmidi-0.2.2/src/wildmidi_lib.c
 
3
@@ -3831,6 +3831,14 @@
 
4
                WM_Unlock(&patch_lock);
 
5
                free (mdi->patches);
 
6
        }
 
7
+
 
8
+       for (i = 0; i < 4; i++) {
 
9
+               if (mdi->filter.delay[i][0] != NULL)
 
10
+                       free(mdi->filter.delay[i][0]);
 
11
+               if (mdi->filter.delay[i][1] != NULL)
 
12
+                       free(mdi->filter.delay[i][1]);
 
13
+       }
 
14
+
 
15
        if (mdi->data != NULL) {
 
16
                free (mdi->data);
 
17
        }