Previous 15994 Revisions Next

r7940 Thursday 29th April, 2010 at 21:12:52 UTC by Firewave
[WINUI/MESSUI] Fixed free calls for strconv.c functions. Also some other memory leak fixes
[src/mess/osd/winui]devview.c messui.c propertiesms.c softwarepicker.c
[src/osd/winui]dijoystick.c directdraw.c directories.c dirwatch.c mui_audit.c mui_opts.c mui_util.c properties.c tabview.c treeview.c winui.c

src/osd/winui/tabview.c
r7939r7940
295295            return;
296296         tci.pszText = t_text;
297297         res = TabCtrl_InsertItem(hwndTabView, i, &tci);
298         global_free(t_text);
298         osd_free(t_text);
299299      }
300300   }
301301   TabView_UpdateSelection(hwndTabView);
src/osd/winui/directories.c
r7939r7940
163163         return;
164164      t_pOldText = pInfo[nType].m_tDirectory;
165165      if (t_pOldText)
166         global_free(t_pOldText);
166         osd_free(t_pOldText);
167167      pInfo[nType].m_tDirectory = t_s;
168168   }
169169}
r7939r7940
293293      if( !t_s )
294294         return FALSE;
295295      (void)ComboBox_InsertString(GetDlgItem(hDlg, IDC_DIR_COMBO), 0, win_tstring_strdup(t_s));
296      global_free(t_s);
296      osd_free(t_s);
297297      t_s = NULL;
298298   }
299299
r7939r7940
337337      {
338338         DirInfo_SetDir(g_pDirInfo, i, -1, t_s);
339339      }
340      global_free(t_s);
340      osd_free(t_s);
341341      t_s = NULL;
342342   }
343343
r7939r7940
346346
347347error:
348348   if( t_s )
349      global_free(t_s);
349      osd_free(t_s);
350350   Directories_OnDestroy(hDlg);
351351   EndDialog(hDlg, -1);
352352   return FALSE;
r7939r7940
368368         if (g_pDirInfo[i].m_Path)
369369            free(g_pDirInfo[i].m_Path);
370370         if (g_pDirInfo[i].m_tDirectory)
371            global_free(g_pDirInfo[i].m_tDirectory);
371            osd_free(g_pDirInfo[i].m_tDirectory);
372372      }
373373      free(g_pDirInfo);
374374      g_pDirInfo = NULL;
r7939r7940
401401      }
402402      utf8_buf = utf8_from_tstring(buf);
403403      SetTheseDirs(utf8_buf);
404      global_free(utf8_buf);
404      osd_free(utf8_buf);
405405
406406      nResult |= nFlagResult;
407407    }
r7939r7940
426426         s = FixSlash(DirInfo_Dir(g_pDirInfo, i));
427427         utf8_s = utf8_from_tstring(s);
428428         g_directoryInfo[i].pfnSetTheseDirs(utf8_s);
429         global_free(utf8_s);
429         osd_free(utf8_s);
430430      }
431431   }
432432   EndDialog(hDlg, nResult);
src/osd/winui/dijoystick.c
r7939r7940
448448   hr = IDirectInputDevice2_SetProperty(joystick->did, DIPROP_RANGE, &diprg.diph);
449449   if (FAILED(hr)) /* if this fails, don't use this axis */
450450   {
451      global_free(joystick->axes[joystick->num_axes].name);
451      free(joystick->axes[joystick->num_axes].name);
452452      joystick->axes[joystick->num_axes].name = NULL;
453453      return DIENUM_CONTINUE;
454454   }
r7939r7940
649649   for (i = 0; i < joystick->num_axes; i++)
650650   {
651651      if (joystick->axes[i].name)
652         global_free(joystick->axes[i].name);
652         free(joystick->axes[i].name);
653653      joystick->axes[i].name = NULL;
654654   }
655655   
656656   if (joystick->name != NULL)
657657   {
658      global_free(joystick->name);
658      free(joystick->name);
659659      joystick->name = NULL;
660660   }
661661}
src/osd/winui/mui_audit.c
r7939r7940
452452   Edit_SetSel(hEdit, textLength, textLength);
453453   SendMessage( hEdit, EM_REPLACESEL, FALSE, (WPARAM)(LPCTSTR)win_tstring_strdup(t_s) );
454454   
455   global_free(t_s);
455   osd_free(t_s);
456456}
457457
458458static const char * StatusString(int iStatus)
src/osd/winui/mui_opts.c
r7939r7940
21792179      if( !t_ptr )
21802180         return;
21812181      _tcscpy(f->lfFaceName, t_ptr);
2182      global_free(t_ptr);
2182      osd_free(t_ptr);
21832183   }
21842184}
21852185
r7939r7940
22062206         f->lfPitchAndFamily,
22072207         utf8_FaceName);
22082208
2209   global_free(utf8_FaceName);
2209   osd_free(utf8_FaceName);
22102210}
22112211
22122212static void TabFlagsEncodeString(int data, char *str)
r7939r7940
29072907      astring_free(match);
29082908      utf8_filename = utf8_from_tstring(findFileData.cFileName);
29092909      match = astring_assemble_3(astring_alloc(), astring_c(pathname), PATH_SEPARATOR, utf8_filename );
2910      free(utf8_filename);
2910      osd_free(utf8_filename);
29112911      osd_rmfile(astring_c(match));
29122912      astring_free(match);
29132913
r7939r7940
29152915      {
29162916         utf8_filename = utf8_from_tstring(findFileData.cFileName);
29172917         match = astring_assemble_3(astring_alloc(), astring_c(pathname), PATH_SEPARATOR, utf8_filename );
2918         free(utf8_filename);
2918         osd_free(utf8_filename);
29192919         osd_rmfile(astring_c(match));
29202920         astring_free(match);
29212921      }
src/osd/winui/dirwatch.c
r7939r7940
191191         pWatcher->nMessage,
192192         (pEntry->nIndex << 16) | (pEntry->nSubIndex << 0),
193193         (LPARAM)(LPCTSTR) win_tstring_strdup(t_filename));
194      global_free(t_filename);
194      osd_free(t_filename);
195195   }
196196
197197   DirWatcher_SetupWatch(pWatcher, pEntry);
src/osd/winui/mui_util.c
r7939r7940
203203   hErr = ShellExecute(hWnd, NULL, tName, NULL, NULL, SW_SHOWNORMAL);
204204   if ((FPTR)hErr > 32)
205205   {
206      global_free(tName);
206      osd_free(tName);
207207      return;
208208   }
209209
r7939r7940
239239 
240240   MessageBox(NULL, msg, tName, MB_OK);
241241   
242   global_free(tName);
242   osd_free(tName);
243243}
244244
245245char* MyStrStrI(const char* pFirst, const char* pSrch)
r7939r7940
596596   
597597   icon = ExtractIcon(inst, t_exefilename, iconindex);
598598   
599   global_free(t_exefilename);
599   osd_free(t_exefilename);
600600   
601601   return icon;
602602}
r7939r7940
612612   TCHAR *cpy = NULL;
613613   if (str != NULL)
614614   {
615      cpy = (TCHAR*)malloc((_tcslen(str) + 1) * sizeof(TCHAR));
615      cpy = (TCHAR*)osd_malloc((_tcslen(str) + 1) * sizeof(TCHAR));
616616      if (cpy != NULL)
617617         _tcscpy(cpy, str);
618618   }
r7939r7940
635635   result = CreateFile(t_filename, desiredmode, sharemode, securityattributes, creationdisposition,
636636                  flagsandattributes, templatehandle);
637637
638   global_free(t_filename);
638   osd_free(t_filename);
639639                 
640640   return result;
641641}
r7939r7940
661661   if( bufferlength > 0 ) {
662662      utf8_buffer = utf8_from_tstring(t_buffer);
663663      if( !utf8_buffer ) {
664         global_free(t_buffer);
664         osd_free(t_buffer);
665665         return result;
666666      }
667667   }
r7939r7940
669669   strncpy(buffer, utf8_buffer, bufferlength);
670670   
671671   if( utf8_buffer )
672      global_free(utf8_buffer);
672      osd_free(utf8_buffer);
673673   
674674   if( t_buffer )
675      global_free(t_buffer);
675      free(t_buffer);
676676   
677677   return result;
678678}
r7939r7940
690690   
691691   result = FindFirstFile(t_filename, findfiledata);
692692   
693   global_free(t_filename);
693   osd_free(t_filename);
694694   
695695   return result;
696696}
src/osd/winui/directdraw.c
r7939r7940
247247   
248248   for (i = 0; i < g_nNumDisplays; i++)
249249   {
250      global_free(g_Displays[i].name);
250      free(g_Displays[i].name);
251251      g_Displays[i].name = NULL;
252252      if (g_Displays[i].lpguid != NULL)
253253      {
254         global_free(g_Displays[i].lpguid);
254         free(g_Displays[i].lpguid);
255255         g_Displays[i].lpguid = NULL;
256256      }
257257     
src/osd/winui/treeview.c
r7939r7940
15591559         DeleteBits(lpFolder->m_lpGameBits);
15601560         lpFolder->m_lpGameBits = 0;
15611561      }
1562      global_free(lpFolder->m_lptTitle);
1562      osd_free(lpFolder->m_lptTitle);
15631563      lpFolder->m_lptTitle = 0;
15641564      free(lpFolder->m_lpTitle);
15651565      lpFolder->m_lpTitle = 0;
src/osd/winui/winui.c
r7939r7940
10171017
10181018      /* free arguments */
10191019      for (i = 0; i < __argc; i++)
1020         global_free(utf8_argv[i]);
1020         osd_free(utf8_argv[i]);
10211021      free(utf8_argv);
10221022     
10231023      exit(rc);
r7939r7940
18051805      return FALSE;
18061806
18071807   _tcscpy(last_directory,t_inpdir);
1808   global_free(t_inpdir);
1808   osd_free(t_inpdir);
18091809   hMain = CreateDialog(hInstance, MAKEINTRESOURCE(IDD_MAIN), 0, NULL);
18101810   if (hMain == NULL)
18111811   {
r7939r7940
30183018         if( !t_gameinfostatus )
30193019            return;
30203020         _tcscpy(String, t_gameinfostatus);
3021         global_free(t_gameinfostatus);
3021         osd_free(t_gameinfostatus);
30223022      }
30233023   }
30243024   else
r7939r7940
32713271
32723272   UpdateScreenShot();
32733273
3274   global_free(t_description);
3274   osd_free(t_description);
32753275}
32763276
32773277static void PaintBackgroundImage(HWND hWnd, HRGN hRgn, int x, int y)
r7939r7940
34183418
34193419      result = TryRenameCustomFolder(folder, utf8_szText);
34203420
3421      global_free(utf8_szText);
3421      osd_free(utf8_szText);
34223422
34233423      return result;
34243424   }
r7939r7940
37873787            return;
37883788         CreateProcess(NULL, t_exec_command, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi);
37893789
3790         global_free(t_exec_command);
3790         osd_free(t_exec_command);
37913791
37923792         // We will not wait for the process to finish cause it might be a background task
37933793         // The process won't get closed when MAME32 closes either.
r7939r7940
45954595            ResetBackground(utf8_szFile);
45964596            LoadBackgroundBitmap();
45974597            InvalidateRect(hMain, NULL, TRUE);
4598            global_free(t_bgdir);
4599            global_free(utf8_szFile);
4598            osd_free(t_bgdir);
4599            osd_free(utf8_szFile);
46004600            return TRUE;
46014601         }
4602         global_free(t_bgdir);
4602         osd_free(t_bgdir);
46034603      }
46044604      break;
46054605
r7939r7940
49194919         return s;
49204920
49214921      _sntprintf(pszBuffer, nBufferLength, TEXT("%s"), t_s);
4922      global_free(t_s);
4922      osd_free(t_s);
49234923
49244924      s = pszBuffer;
49254925   }
r7939r7940
49464946      a = GlobalAddAtom(t_description);
49474947      SendMessage(HWND_BROADCAST, g_mame32_message, a, a);
49484948      GlobalDeleteAtom(a);
4949      global_free(t_description);
4949      osd_free(t_description);
49504950   }
49514951
49524952   EnableSelection(nItem);
r7939r7940
50235023
50245024   // Allow selection to change the default saved game
50255025   bListReady = TRUE;
5026   global_free(t_bgdir);
5026   osd_free(t_bgdir);
50275027}
50285028
50295029static void AddDriverIcon(int nItem,int default_icon_index)
r7939r7940
54435443   if (t_filename != NULL)
54445444   {
54455445      _sntprintf(t_filename_buffer, ARRAY_LENGTH(t_filename_buffer), TEXT("%s"), t_filename);
5446      global_free(t_filename);
5446      osd_free(t_filename);
54475447   }
54485448
54495449   of.lStructSize       = sizeof(of);
r7939r7940
55675567   }
55685568
55695569   if( t_artdir )
5570      global_free(t_artdir);
5570      osd_free(t_artdir);
55715571   if( t_statedir )
5572      global_free(t_statedir);
5572      osd_free(t_statedir);
55735573   if( t_snapdir )
5574      global_free(t_snapdir);
5574      osd_free(t_snapdir);
55755575
55765576   utf8_filename = utf8_from_tstring(t_filename_buffer);
55775577   if (utf8_filename != NULL)
55785578   {
55795579      snprintf(filename, MAX_PATH, "%s", utf8_filename);
5580      global_free(utf8_filename);
5580      osd_free(utf8_filename);
55815581   }
55825582
55835583   return success;
r7939r7940
56595659         if( !utf8_LangFile )
56605660            return FALSE;
56615661         SetLanguage(utf8_LangFile);
5662         global_free(utf8_LangFile);
5662         osd_free(utf8_LangFile);
56635663
56645664      case IDCANCEL:
56655665         EndDialog(hDlg, 0);
r7939r7940
56925692   if( !t_message )
56935693      return;
56945694   SendMessage(hStatusBar, SB_SETTEXT, (WPARAM) part_index, (LPARAM)(LPCTSTR) win_tstring_strdup(t_message));
5695   global_free(t_message);
5695   osd_free(t_message);
56965696}
56975697
56985698void SetStatusBarTextF(int part_index, const char *fmt, ...)
r7939r7940
63216321
63226322      EnableMenuItem(hMenu, ID_CONTEXT_SELECT_RANDOM, MF_ENABLED);
63236323
6324      global_free(t_description);
6324      osd_free(t_description);
63256325   }
63266326   else
63276327   {
r7939r7940
64396439      else
64406440         InsertMenuItem(hMenu,i,FALSE,&mii);
64416441
6442      global_free(t_title);
6442      osd_free(t_title);
64436443   }
64446444
64456445}
src/osd/winui/properties.c
r7939r7940
605605      win_message_box_utf8(0, temp, "Error", IDOK);
606606   }
607607
608   global_free(t_description);
608   osd_free(t_description);
609609   free(pspage);
610610}
611611
r7939r7940
19691969   TCHAR *screen_option_value;
19701970   int selected_screen;
19711971   int screen_option_index;
1972   const char *op_val;
1972   char *op_val;
19731973
19741974   selected_screen = GetSelectedScreen(dialog);
19751975   screen_option_index = ComboBox_GetCurSel(control);
r7939r7940
19771977   snprintf(screen_option_name, ARRAY_LENGTH(screen_option_name), "screen%d", selected_screen);
19781978   op_val = utf8_from_tstring(screen_option_value);
19791979   options_set_string(opts, screen_option_name, op_val, OPTION_PRIORITY_CMDLINE);
1980   osd_free(op_val);
19801981   return FALSE;
19811982}
19821983
r7939r7940
20152016            return FALSE;
20162017         if (_tcscmp(t_option, dd.DeviceName) == 0)
20172018            nSelection = i+1;
2018         global_free(t_option);
2019         osd_free(t_option);
20192020      }
20202021   }
20212022   (void)ComboBox_SetCurSel(control, nSelection);
r7939r7940
20792080{
20802081   TCHAR *input_option_value;   
20812082   int input_option_index;
2082   const char *op_val;
2083   char *op_val;
20832084
20842085   input_option_index = ComboBox_GetCurSel(control);
20852086   input_option_value = (TCHAR*) ComboBox_GetItemData(control, input_option_index);   
20862087   op_val = utf8_from_tstring(input_option_value);
20872088   options_set_string(opts, OPTION_CTRLR, op_val, OPTION_PRIORITY_CMDLINE);
2089   osd_free(op_val);
20882090   return FALSE;
20892091}
20902092
r7939r7940
21262128   if( !t_ctrldir )
21272129   {
21282130      if( t_buf )
2129         global_free(t_buf);
2131         osd_free(t_buf);
21302132      return FALSE;
21312133   }
21322134
21332135   _stprintf (path, TEXT("%s\\*.*"), t_ctrldir);
21342136   
2135   global_free(t_ctrldir);
2137   osd_free(t_ctrldir);
21362138
21372139   hFind = FindFirstFile(path, &FindFileData);
21382140
r7939r7940
21722174   (void)ComboBox_SetCurSel(control, selected);
21732175   
21742176   if( t_buf )
2175      global_free(t_buf);
2177      osd_free(t_buf);
21762178
21772179   return FALSE;
21782180}
r7939r7940
22962298            }
22972299         }
22982300      }
2299      global_free(t_screen);
2301      osd_free(t_screen);
23002302
23012303      (void)ComboBox_SetCurSel(sizes_control, sizes_selection);
23022304      (void)ComboBox_SetCurSel(refresh_control, refresh_selection);
r7939r7940
29402942                     return;
29412943                  (void)ComboBox_InsertString(hCtrl, i, win_tstring_strdup(t_s));
29422944                  (void)ComboBox_SetItemData( hCtrl, i++, biosname);
2943                  global_free(t_s);
2945                  osd_free(t_s);
29442946               }
29452947            }
29462948         }
r7939r7940
29692971                  return;
29702972               (void)ComboBox_InsertString(hCtrl, i, win_tstring_strdup(t_s));
29712973               (void)ComboBox_SetItemData( hCtrl, i++, biosname);
2972               global_free(t_s);
2974               osd_free(t_s);
29732975            }
29742976         }
29752977      }
src/mess/osd/winui/messui.c
r7939r7940
718718      t_filter[i] = (t_buffer[i] != '|') ? t_buffer[i] : '\0';
719719   t_filter[i++] = '\0';
720720   t_filter[i++] = '\0';
721   global_free(t_buffer);
721   osd_free(t_buffer);
722722
723723    of.lStructSize = sizeof(of);
724724    of.hwndOwner = GetMainWindow();
r7939r7940
847847         return;
848848      // TODO - this should go against InternalSetSelectedSoftware()
849849      SoftwarePicker_AddFile(GetDlgItem(GetMainWindow(), IDC_SWLIST), utf8_filename);
850      global_free(utf8_filename);
850      osd_free(utf8_filename);
851851   }
852852   
853853   machine_config_free(config);
r7939r7940
899899      /* We only want the first path; throw out the rest */
900900      i = astring_chr(&as, 0, ';');
901901      if (i > 0) astring_substr(&as, 0, i);
902      global_free(t_s);
902      osd_free(t_s);
903903      t_s = tstring_from_utf8(astring_c(&as));
904904
905905      /* Make sure a folder was specified in the tab, and that it exists */
r7939r7940
911911         /* We only want the first path; throw out the rest */
912912         i = astring_chr(&as, 0, ';');
913913         if (i > 0) astring_substr(&as, 0, i);
914         global_free(t_s);
914         osd_free(t_s);
915915         t_s = tstring_from_utf8(astring_c(&as));
916916
917917         /* Make sure a folder was specified in the tab, and that it exists */
r7939r7940
921921
922922            osd_get_full_path(&dst,".");
923923            /* Default to emu directory */
924            global_free(t_s);
924            osd_free(t_s);
925925            t_s = tstring_from_utf8(dst);
926926
927927            /* If software folder exists, use it instead */
928928            zippath_combine(&as, dst, "software");
929929            if (osd_opendir(astring_c(&as)))
930930            {
931               global_free(t_s);
931               osd_free(t_s);
932932               t_s = tstring_from_utf8(astring_c(&as));
933933            }
934            global_free(dst);
934            osd_free(dst);
935935         }
936936      }
937937   }
r7939r7940
940940   bResult = CommonFileImageDialog(t_s, GetOpenFileName, pszFilename, config, imagetypes);
941941   CleanupImageTypes(imagetypes, ARRAY_LENGTH(imagetypes));
942942   
943   global_free(t_s);
943   osd_free(t_s);
944944
945945   return bResult;
946946}
r7939r7940
982982      /* We only want the first path; throw out the rest */
983983      i = astring_chr(&as, 0, ';');
984984      if (i > 0) astring_substr(&as, 0, i);
985      global_free(t_s);
985      osd_free(t_s);
986986      t_s = tstring_from_utf8(astring_c(&as));
987987
988988      /* Make sure a folder was specified in the tab, and that it exists */
r7939r7940
992992
993993         osd_get_full_path(&dst,".");
994994         /* Default to emu directory */
995         global_free(t_s);
995         osd_free(t_s);
996996         t_s = tstring_from_utf8(dst);
997997
998998         /* If software folder exists, use it instead */
999999         zippath_combine(&as, dst, "software");
10001000         if (osd_opendir(astring_c(&as)))
10011001         {
1002            global_free(t_s);
1002            osd_free(t_s);
10031003            t_s = tstring_from_utf8(astring_c(&as));
10041004         }
1005         global_free(dst);
1005         osd_free(dst);
10061006      }
10071007   }
10081008
r7939r7940
10101010   bResult = CommonFileImageDialog(t_s, GetSaveFileName, pszFilename, config, imagetypes);
10111011   CleanupImageTypes(imagetypes, ARRAY_LENGTH(imagetypes));
10121012   
1013   global_free(t_s);
1013   osd_free(t_s);
10141014
10151015   return bResult;
10161016}
r7939r7940
10251025      return;
10261026   MessSpecifyImage(drvindex, dev, utf8_filename);
10271027   MessRefreshPicker();
1028   global_free(utf8_filename);
1028   osd_free(utf8_filename);
10291029}
10301030
10311031
r7939r7940
10421042      return t_buffer;
10431043
10441044   _sntprintf(pszBuffer, nBufferLength, TEXT("%s"), t_s);
1045   global_free(t_s);
1045   osd_free(t_s);
10461046   t_buffer = pszBuffer;
10471047
10481048   return t_buffer;
src/mess/osd/winui/devview.c
r7939r7940
217217            t_s = tstring_from_utf8(info.name);
218218            ppszDevices[i] = (TCHAR*)alloca((_tcslen(t_s) + 1) * sizeof(TCHAR));
219219            _tcscpy(ppszDevices[i], t_s);
220            global_free(t_s);
220            osd_free(t_s);
221221            i++;
222222         }
223223      }
src/mess/osd/winui/softwarepicker.c
r7939r7940
617617      return FALSE;
618618
619619   if (!strcmp(utf8_FileName, ".") || !strcmp(utf8_FileName, "..")) {
620      global_free(utf8_FileName);
620      osd_free(utf8_FileName);
621621      return TRUE;
622622   }
623623
r7939r7940
631631   else
632632      rc = SoftwarePicker_InternalAddFile(hwndPicker, pszFilename, FALSE);
633633
634   global_free(utf8_FileName);
634   osd_free(utf8_FileName);
635635   return rc;
636636}
637637
r7939r7940
752752            return s;
753753         _sntprintf(pszBuffer, nBufferLength, TEXT("%s"), t_buf);
754754         s = pszBuffer;
755         global_free(t_buf);
755         osd_free(t_buf);
756756         break;
757757
758758      case MESS_COLUMN_GOODNAME:
r7939r7940
783783                  return s;
784784               _sntprintf(pszBuffer, nBufferLength, TEXT("%s"), t_buf);
785785               s = pszBuffer;
786               global_free(t_buf);
786               osd_free(t_buf);
787787            }
788788         }
789789         break;
r7939r7940
804804               return s;
805805            _sntprintf(pszBuffer, nBufferLength, TEXT("%s"), t_buf);
806806            s = pszBuffer;
807            global_free(t_buf);
807            osd_free(t_buf);
808808         }
809809         break;
810810   }
src/mess/osd/winui/propertiesms.c
r7939r7940
318318   {
319319      driver_index = PropertiesCurrentGame(dialog);
320320      SetExtraSoftwarePaths(driver_index, utf8_dir_list);
321      global_free(utf8_dir_list);
321      osd_free(utf8_dir_list);
322322   }
323323   return TRUE;
324324}
r7939r7940
381381   // finish up
382382   AppendList(control, TEXT(DIRLIST_NEWENTRYTEXT), current_item);
383383   ListView_SetItemState(control, 0, LVIS_SELECTED, LVIS_SELECTED);
384   global_free(t_dir_list);
384   osd_free(t_dir_list);
385385   return TRUE;
386386}
387387
r7939r7940
435435         (void)ComboBox_InsertString(control, i, win_tstring_strdup(t_ramstring));
436436         (void)ComboBox_SetItemData(control, i, ram);
437437         
438         global_free(t_ramstring);         
438         osd_free(t_ramstring);
439439      }
440440      if (config->extra_options != NULL)
441441      {
r7939r7940
465465            (void)ComboBox_InsertString(control, i, win_tstring_strdup(t_ramstring));
466466            (void)ComboBox_SetItemData(control, i, ram);
467467
468            global_free(t_ramstring);
468            osd_free(t_ramstring);
469469
470470            // is this the current option?  record the index if so
471471            if (ram == current_ram)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team