- Timestamp:
- Dec 16, 2004, 2:03:41 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/gui/orxonox_gui_gtk.cc
r3187 r3192 392 392 { 393 393 if (label) 394 delete label;394 delete []label; 395 395 label = new char[strlen(title)+1]; 396 396 strcpy(label, title); … … 512 512 { 513 513 if (label) 514 delete label;514 delete []label; 515 515 label = new char[strlen(title)+1]; 516 516 strcpy(label, title); … … 561 561 { 562 562 if (label) 563 delete label;563 delete []label; 564 564 label = new char[strlen(title)+1]; 565 565 strcpy(label, title); … … 640 640 Image::Image (char* imagename) 641 641 { 642 this->init(); 642 643 if (label) 643 delete label;644 delete []label; 644 645 label = new char[strlen(imagename)+1]; 645 646 strcpy(label, imagename); 646 647 647 this->init();648 648 #ifdef HAVE_GTK2 649 649 widget = gtk_image_new_from_file (imagename); … … 753 753 { 754 754 if (label) 755 delete label;755 delete []label; 756 756 label = new char[strlen(title)+1]; 757 757 strcpy(label, title); … … 806 806 { 807 807 if (label) 808 delete label;808 delete []label; 809 809 label = new char[strlen(title)+1]; 810 810 strcpy(label, title); … … 886 886 { 887 887 if (label) 888 delete label;888 delete []label; 889 889 label = new char[strlen(title)+1]; 890 890 strcpy(label, title); … … 978 978 { 979 979 if (label) 980 delete label;980 delete []label; 981 981 label = new char[strlen(title)+1]; 982 982 strcpy(label, title); … … 1068 1068 { 1069 1069 if (label) 1070 delete label;1070 delete []label; 1071 1071 label = new char [strlen(title)+1]; 1072 1072 strcpy(label, title); … … 1125 1125 { 1126 1126 if (label) 1127 delete label;1127 delete []label; 1128 1128 label = new char[strlen(text)+1]; 1129 1129 strcpy(label, text);
Note: See TracChangeset
for help on using the changeset viewer.