~ubuntu-branches/ubuntu/precise/lmms/precise-updates

« back to all changes in this revision

Viewing changes to plugins/patman/patman.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Артём Попов
  • Date: 2011-02-14 20:58:36 UTC
  • mfrom: (1.1.10 upstream) (3.1.9 sid)
  • Revision ID: james.westby@ubuntu.com-20110214205836-2u41xus1d2mj8nfz
Tags: 0.4.10-1ubuntu1
* Merge from debian unstable (LP: #718801).  Remaining changes:
  - Replace build-dep on libwine-dev with wine1.2-dev to build
    against the newer Wine.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 * patman.cpp - a GUS-compatible patch instrument plugin
3
3
 *
4
4
 * Copyright (c) 2007-2008 Javier Serrano Polo <jasp00/at/users.sourceforge.net>
 
5
 * Copyright (c) 2009-2011 Tobias Doerffel <tobydox/at/users.sourceforge.net>
5
6
 * 
6
7
 * This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
7
8
 *
303
304
                                short sample;
304
305
                                if ( fread( &sample, 2, 1, fd ) != 1 )
305
306
                                {
306
 
                                        delete wave_samples;
 
307
                                        delete[] wave_samples;
307
308
                                        fclose( fd );
308
309
                                        return( LoadIO );
309
310
                                }
327
328
                                char sample;
328
329
                                if ( fread( &sample, 1, 1, fd ) != 1 )
329
330
                                {
330
 
                                        delete wave_samples;
 
331
                                        delete[] wave_samples;
331
332
                                        fclose( fd );
332
333
                                        return( LoadIO );
333
334
                                }