mirror of
https://github.com/transmission/transmission
synced 2025-03-15 16:29:34 +00:00
(gtk) #914: lockpath string should be freed conditionally
This commit is contained in:
parent
3e99ae9292
commit
18871ac609
1 changed files with 4 additions and 2 deletions
|
@ -103,8 +103,10 @@ getLockFilename( void )
|
|||
static void
|
||||
cf_removelocks( void )
|
||||
{
|
||||
g_unlink( gl_lockpath );
|
||||
g_free( gl_lockpath );
|
||||
if( gl_lockpath ) {
|
||||
g_unlink( gl_lockpath );
|
||||
g_free( gl_lockpath );
|
||||
}
|
||||
}
|
||||
|
||||
/* errstr may be NULL, this might be called before GTK is initialized */
|
||||
|
|
Loading…
Add table
Reference in a new issue