favorites: Fix some leaks revealed by valgrind.
Michael Webster
3 years ago
375 | 375 |
{
|
376 | 376 |
if (!priv->info->uri)
|
377 | 377 |
{
|
378 | |
if (error != NULL)
|
379 | |
{
|
380 | |
*error = g_error_new (G_IO_ERROR, G_IO_ERROR_NOT_FOUND, "File not found");
|
381 | |
}
|
|
378 |
g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_NOT_FOUND, "File not found");
|
382 | 379 |
return NULL;
|
383 | 380 |
}
|
384 | 381 |
|
|
527 | 524 |
|
528 | 525 |
g_file_attribute_matcher_unref (matcher);
|
529 | 526 |
}
|
530 | |
|
531 | |
if (error)
|
532 | |
{
|
533 | |
*error = g_error_new (G_IO_ERROR, G_IO_ERROR_FAILED, "Can't retrieve info for favorite file");
|
534 | |
}
|
535 | |
|
536 | |
return info; // NULL
|
|
527 |
else
|
|
528 |
{
|
|
529 |
g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_FAILED, "Can't retrieve info for favorite file");
|
|
530 |
}
|
|
531 |
|
|
532 |
return info;
|
537 | 533 |
}
|
538 | 534 |
|
539 | 535 |
GFileInfo *
|