comparison pidgin/gtksound.c @ 15588:c406a1e73d6f

sf patch #1651457, from Paul-Christiaan Spruijtenburg "Selecting a non-existing Sound Command for Method: Command in Preferences->Sounds causes gaim to double free the command." My bad!
author Mark Doliner <mark@kingant.net>
date Thu, 08 Feb 2007 17:32:27 +0000
parents 535f002e7b0f
children c02a897a67c7
comparison
equal deleted inserted replaced
15584:d91aed154695 15588:c406a1e73d6f
434 else 434 else
435 command = g_strdup_printf("%s %s", sound_cmd, filename); 435 command = g_strdup_printf("%s %s", sound_cmd, filename);
436 436
437 if(!g_spawn_command_line_async(command, &error)) { 437 if(!g_spawn_command_line_async(command, &error)) {
438 gaim_debug_error("gtksound", "sound command could not be launched: %s\n", error->message); 438 gaim_debug_error("gtksound", "sound command could not be launched: %s\n", error->message);
439 g_free(command);
440 g_error_free(error); 439 g_error_free(error);
441 } 440 }
442 441
443 g_free(command); 442 g_free(command);
444 return; 443 return;