macro causes a leak (according to the leaks program).
Attempt to fix several other leaks with release method calls.
For some reason the process still grows more than it should...
I will need to use some better methods than leaks, and malloc_history
I suspect. Whatever is leaking, it's hard to find. I need to isolate
the cases more.
Add a missing image/jpeg branch.
Remove read_prop_32 - it's not used.
(cherry picked from commit 63a680354d
)
41 lines
990 B
Objective-C
41 lines
990 B
Objective-C
/* pbproxy.h
|
|
Copyright (c) 2002 Apple Computer, Inc. All rights reserved. */
|
|
|
|
#ifndef PBPROXY_H
|
|
#define PBPROXY_H 1
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
#define Cursor X_Cursor
|
|
#undef _SHAPE_H_
|
|
#include <X11/Xlib.h>
|
|
#include <X11/extensions/shape.h>
|
|
#undef Cursor
|
|
|
|
#define DEBUG 0
|
|
|
|
/* from main.m */
|
|
extern void x_set_is_active (BOOL state);
|
|
extern BOOL x_get_is_active (void);
|
|
extern id x_selection_object (void);
|
|
extern Time x_current_timestamp (void);
|
|
|
|
extern Display *x_dpy;
|
|
extern int x_apple_wm_event_base, x_apple_wm_error_base;
|
|
|
|
/* from x-input.m */
|
|
extern void x_input_register (void);
|
|
extern void x_input_run (void);
|
|
|
|
#if DEBUG == 0
|
|
# define DB(msg, args...) do {} while (0)
|
|
#else
|
|
/* BEWARE: this can cause a string memory leak, according to the leaks program. */
|
|
# define DB(msg, args...) debug_printf("%s:%s:%d " msg, __FILE__, __FUNCTION__, __LINE__, ##args)
|
|
#endif
|
|
|
|
#define TRACE() DB("TRACE\n")
|
|
extern void debug_printf (const char *fmt, ...);
|
|
|
|
#endif /* PBPROXY_H */
|