Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3192 in orxonox.OLD for orxonox/trunk


Ignore:
Timestamp:
Dec 16, 2004, 2:03:41 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk/src/gui: segfault fix. Pointer was deleted that pointed somewhere we didn't know

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/gui/orxonox_gui_gtk.cc

    r3187 r3192  
    392392{
    393393  if (label)
    394     delete label;
     394    delete []label;
    395395  label = new char[strlen(title)+1];
    396396  strcpy(label, title);
     
    512512{
    513513  if (label)
    514     delete label;
     514    delete []label;
    515515  label = new char[strlen(title)+1];
    516516  strcpy(label, title);
     
    561561{
    562562  if (label)
    563     delete label;
     563    delete []label;
    564564  label = new char[strlen(title)+1];
    565565  strcpy(label, title);
     
    640640Image::Image (char* imagename)
    641641{
     642  this->init();
    642643  if (label)
    643     delete label;
     644    delete []label;
    644645  label = new char[strlen(imagename)+1];
    645646  strcpy(label, imagename);
    646647
    647   this->init();
    648648#ifdef HAVE_GTK2
    649649  widget = gtk_image_new_from_file (imagename);
     
    753753{
    754754  if (label)
    755     delete label;
     755    delete []label;
    756756  label = new char[strlen(title)+1];
    757757  strcpy(label, title);
     
    806806{
    807807  if (label)
    808     delete label;
     808    delete []label;
    809809  label = new char[strlen(title)+1];
    810810  strcpy(label, title);
     
    886886{
    887887  if (label)
    888     delete label;
     888    delete []label;
    889889  label = new char[strlen(title)+1];
    890890  strcpy(label, title);
     
    978978{
    979979  if (label)
    980     delete label;
     980    delete []label;
    981981  label = new char[strlen(title)+1];
    982982  strcpy(label, title);
     
    10681068{
    10691069  if (label)
    1070     delete label;
     1070    delete []label;
    10711071  label = new char [strlen(title)+1];
    10721072  strcpy(label, title);
     
    11251125{
    11261126  if (label)
    1127     delete label;
     1127    delete []label;
    11281128  label = new char[strlen(text)+1];
    11291129  strcpy(label, text);
Note: See TracChangeset for help on using the changeset viewer.