mate-desktop / libmatemixer

Mixer library for MATE Desktop
https://mate-desktop.org/
GNU Lesser General Public License v2.1
14 stars 10 forks source link

mate-volume-control-applet mem leak #36

Open jiangqii opened 2 years ago

jiangqii commented 2 years ago

This link: https://github.com/mate-desktop/mate-media/issues/187

jiangqii commented 2 years ago

I changed file like this and it is worked.

   373      if (yh_flag == 1){//�first run and yh_flag =2;
   374      yh_flag = 2;
   375          g_warning("========= 1 run yh_flag = 2==========");
   376          if (g_hash_table_contains (alsa->priv->devices_ids, id) == TRUE) {
   377              snd_ctl_close (ctl);
   378              return FALSE;
   379          }
   380      }else if(yh_flag == 2){
   381      yh_flag = 3;
   382          g_warning("========= 2 run yh_flag = 3==========");
   383          if (g_hash_table_contains (alsa->priv->devices_ids, id) == TRUE) {
   384              snd_ctl_close (ctl);
   385          yh_flag = 2;
   386              g_warning("========= 2 run ok then yh_flag = 2==========");
   387              return FALSE;
   388          }
   389      }else if(yh_flag == 3){
   390              g_warning("========= >= 3 run always failed! ==========");
   391              snd_ctl_close (ctl);
   392              return FALSE;
   393      }else{
   394              g_warning("========= else ==========");
   395      }

because i have a board.This board is arm64 and this board don't have "default".So,this will show "Failed to loaded element default".....