diff options
Diffstat (limited to 'src/open-file.c')
-rw-r--r-- | src/open-file.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/open-file.c b/src/open-file.c index 35280ac..ceda1d3 100644 --- a/src/open-file.c +++ b/src/open-file.c @@ -31,17 +31,17 @@ open_file_new (const char *path, const char *temp_dir) { OpenFile *ofile; - + ofile = g_new0 (OpenFile, 1); ofile->path = g_strdup (path); ofile->extracted_uri = g_filename_to_uri (extracted_path, NULL, NULL); if (! uri_exists (ofile->extracted_uri)) { open_file_free (ofile); return NULL; - } + } ofile->temp_dir = g_strdup (temp_dir); ofile->last_modified = get_file_mtime (ofile->extracted_uri); - + return ofile; } @@ -79,9 +79,9 @@ GType open_file_get_type (void) { static GType type = 0; - + if (type == 0) type = g_boxed_type_register_static ("FROpenFile", (GBoxedCopyFunc) open_file_copy, (GBoxedFreeFunc) open_file_free); - + return type; } |