Source

libtaginfo / libtaginfo / image.cc

/*
 * Copyright (C) 2013 Jörn Magens
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 * 
 * This Program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; see the file LICENSE.  If not, write to
 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth 
 * Floor, Boston, MA  02110-1301  USA
 * https://www.gnu.org/licenses/lgpl-2.1.txt
 *
 * Author:
 * 	Jörn Magens <shuerhaaken@googlemail.com>
 */


#include "taginfo.h"
#include "taginfo_internal.h"



using namespace TagInfo;



// Image

Image::Image() {
    data            = NULL;
    data_length     = 0;
    image_type      = IMAGE_TYPE_OTHER;
    image_file_type = IMAGE_FILE_TYPE_UNKNOWN;
    description     = NULL;
}

Image::~Image() {
//    if(data)
        delete [] data;
//    if(description)
        delete [] description;
}