removed duplicated (and dangerous) call to close(2)
This commit is contained in:
parent
83a5eadcf8
commit
f05fe6a3fb
@ -475,7 +475,6 @@ MotionFeedback::render_pixbuf (int size)
|
|||||||
GError *error = NULL;
|
GError *error = NULL;
|
||||||
|
|
||||||
fd = g_file_open_tmp ("mfimgXXXXXX", &path, &error);
|
fd = g_file_open_tmp ("mfimgXXXXXX", &path, &error);
|
||||||
close (fd);
|
|
||||||
|
|
||||||
if(error) {
|
if(error) {
|
||||||
g_critical("failed to open a temporary file for writing: %s.", error->message);
|
g_critical("failed to open a temporary file for writing: %s.", error->message);
|
||||||
|
Loading…
Reference in New Issue
Block a user