diff options
| author | Leandro A. F. Pereira <leandro@hardinfo.org> | 2007-07-05 22:02:29 +0000 | 
|---|---|---|
| committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2007-07-05 22:02:29 +0000 | 
| commit | aecade30c040b636dd63e551fb47ada4440a16a8 (patch) | |
| tree | 5456d7d6d3554fe5307191ccc635087162e6e33a /hardinfo2/arch/common | |
| parent | cdc40b11f4d7a3050bda164b2d92afc23616b7f9 (diff) | |
Plug two more memory leaks.
Diffstat (limited to 'hardinfo2/arch/common')
| -rw-r--r-- | hardinfo2/arch/common/display.h | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/hardinfo2/arch/common/display.h b/hardinfo2/arch/common/display.h index 00636d9e..d7cf2ae6 100644 --- a/hardinfo2/arch/common/display.h +++ b/hardinfo2/arch/common/display.h @@ -82,10 +82,10 @@ get_x11_info(DisplayInfo *di)                if (g_str_has_prefix(tmp[0], "number of extensions")) {                  int n; -                di->extensions = ""; +                di->extensions = g_strdup("");                  for (n = atoi(tmp[1]); n; n--) { -                  di->extensions = g_strconcat(di->extensions,  +                  di->extensions = h_strconcat(di->extensions,                                                  g_strstrip(*(++output_lines)),                                                 "=\n",                                                 NULL); | 
