mirror of
https://github.com/transmission/transmission
synced 2025-02-13 18:04:43 +00:00
(trunk gtk) #2198: crashed with SIGSEGV in notify.c's notifyCallback()
This commit is contained in:
parent
6e10ee3baa
commit
c2dd366154
1 changed files with 8 additions and 6 deletions
|
@ -51,12 +51,14 @@ notifyCallback( NotifyNotification * n UNUSED,
|
|||
{
|
||||
tr_torrent * tor = tr_torrent_handle( gtor );
|
||||
const tr_info * info = tr_torrent_info( gtor );
|
||||
char * path =
|
||||
g_build_filename( tr_torrentGetDownloadDir(
|
||||
tor ), info->files[0].name, NULL );
|
||||
if( tor && info )
|
||||
{
|
||||
const char * dir = tr_torrentGetDownloadDir( tor );
|
||||
char * path = g_build_filename( dir, info->files[0].name, NULL );
|
||||
gtr_open_file( path );
|
||||
g_free( path );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
|
Loading…
Reference in a new issue